mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
update
This commit is contained in:
parent
5dd6bc1195
commit
ffa41f6fa2
1 changed files with 4 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -28,21 +28,25 @@ jobs:
|
|||
git config --local user.name "github-actions[bot]"
|
||||
|
||||
- name: tidy
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
go mod tidy
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "go mod tidy"
|
||||
|
||||
- name: gofmt
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
go fmt ./...
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "gofmt"
|
||||
|
||||
- name: Pull changes
|
||||
if: github.event_name != 'pull_request'
|
||||
run: git pull -r
|
||||
|
||||
- name: Push changes
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue