This commit is contained in:
Oskar 2021-09-02 22:16:11 +02:00
parent 5dd6bc1195
commit ffa41f6fa2

View file

@ -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 }}