Skip to content

Commit

Permalink
ci: fix push_readme.yml
Browse files Browse the repository at this point in the history
Use a `if` rather than a `&&`. The action was failing in case nothing changed in the `README.md` file. Now the action will just skip committing & pushing.
  • Loading branch information
W95Psp authored May 15, 2024
1 parent 4d4812a commit 875874c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/push_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Readme update" \
&& git push https://$USERNAME:[email protected]/hacspec/hacspec.github.io
if git commit -m "Readme update"; then
git push https://$USERNAME:[email protected]/hacspec/hacspec.github.io
fi
env:
PUSH_HACSPEC_GITHUB_TOKEN: ${{secrets.PUSH_HACSPEC_GITHUB_TOKEN}}
USERNAME: github-actions[bot]

0 comments on commit 875874c

Please sign in to comment.