Skip to content

Commit

Permalink
fix(gha): add hax commit hash in commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Franceschino committed Jul 1, 2024
1 parent 2d3e47d commit cd17f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- name: Regenerate and push the book
run: |
nix build ./hax#hax-book -o result-hax-book
HAX_COMMIT=$(git -C ./hax rev-parse --short HEAD)
mkdir hax-book
rsync -rq --no-perms --chown=$(id -un):$(id -gn) "$(realpath result-hax-book)/" hax-book
Expand All @@ -103,7 +104,7 @@ jobs:
} > README.md
git add -A
if git commit -m "Book update"; then
if git commit -m "Book update (generated from hacspec/hax@$HAX_COMMIT)"; then
git push https://$USERNAME:[email protected]/hacspec/book
fi
env:
Expand Down

0 comments on commit cd17f9e

Please sign in to comment.