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]"
|
git config --local user.name "github-actions[bot]"
|
||||||
|
|
||||||
- name: tidy
|
- name: tidy
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
git add .
|
git add .
|
||||||
git diff-index --quiet HEAD || git commit -m "go mod tidy"
|
git diff-index --quiet HEAD || git commit -m "go mod tidy"
|
||||||
|
|
||||||
- name: gofmt
|
- name: gofmt
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
git add .
|
git add .
|
||||||
git diff-index --quiet HEAD || git commit -m "gofmt"
|
git diff-index --quiet HEAD || git commit -m "gofmt"
|
||||||
|
|
||||||
- name: Pull changes
|
- name: Pull changes
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: git pull -r
|
run: git pull -r
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue