generated from gucio321/agh-sphinx-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: 2nd part used to crash if no changes in readme required
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|