Skip to content

Commit

Permalink
workflow: 2nd part used to crash if no changes in readme required
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Apr 18, 2024
1 parent 97d0b2c commit b90d071
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ jobs:
# replace content of README.md between <!--AUTOURL-BEGIN--> and <!--AUTOURL-END--> with the link to the PDF file
sed -i -e "/\(<\!--AUTOURL-BEGIN-->\)/, /\(<\!--AUTOURL-END-->\)/c\<\!--AUTOURL-BEGIN-->\n<a href=\"https://github.com/${{ github.repository }}/blob/pdf/$filename.pdf\">\n<\!--AUTOURL-END-->" README.md
- name: commit
run: |
git config user.name gucio321
git config user.email [email protected]
git add README.md
git commit -m "Update README.md with the link to the PDF file"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update README.md with the link to the PDF file
commit_options: '--no-verify'
file_pattern: README.md
commit_user_name: gucio321
commit_user_email: [email protected]
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit b90d071

Please sign in to comment.