Skip to content

Commit

Permalink
Merge pull request #51 from xssnick/ci-upd
Browse files Browse the repository at this point in the history
Update go.yml
  • Loading branch information
xssnick committed Jul 18, 2022
2 parents 7512743 + cbbe172 commit 08b36f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -48,15 +47,15 @@ jobs:
files: README.md

- name: Commit changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref != 'refs/heads/master'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "chore: Updated coverage badge."
git commit -m "Updated coverage badge."
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.ref != 'refs/heads/master'
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
Expand Down

0 comments on commit 08b36f0

Please sign in to comment.