-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gha): add hax commit hash in commit message
- Loading branch information
Lucas Franceschino
committed
Jul 1, 2024
1 parent
2d3e47d
commit cd17f9e
Showing
1 changed file
with
2 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|