Skip to content

Commit

Permalink
Improve commit to gh-pages (#155)
Browse files Browse the repository at this point in the history
* Use `github-actions[bot]` as commiter to gh-pages

to avoid the intermittent failure of the email of ${{github.actor}} not
being found, causing the build to fail

* Add the trigger commit to gh-pages commit message

to make it easier to correlate the new version of the page with the
change in the spec that triggered it
  • Loading branch information
teodanciu authored Jul 25, 2023
1 parent 0fb9b10 commit e49fe43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ jobs:
if: github.ref == 'refs/heads/master'

run: |
git config --local user.name ${{ github.actor }}
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add index.html
git add pdfs
git add html
git commit -m "Updated"
git commit -m "Updated for ${{ github.sha }}"
- name: Push to gh-pages
Expand Down

0 comments on commit e49fe43

Please sign in to comment.