Skip to content

Commit 2bebff3

Browse files
committed
Embed commit ID in commit log
1 parent f52ee1a commit 2bebff3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/generate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ jobs:
3939
vim -eu tools/maketags.vim
4040
4141
cd ..
42+
- name: Check commit ID
43+
id: commitid
44+
run: |
45+
echo "id=$(git -C work rev-parse HEAD)" >> $GITHUB_OUTPUT
4246
- name: Update target
4347
run: |
4448
cd target
@@ -61,6 +65,9 @@ jobs:
6165
6266
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
6367
68+
Used commit:
69+
https://github.com/${{ github.repository }}/commit/${{ steps.commitid.outputs.id }}
70+
6471
deploy:
6572
runs-on: ubuntu-latest
6673
needs: generate
@@ -97,6 +104,10 @@ jobs:
97104
make html
98105
99106
cd ..
107+
- name: Check commit ID
108+
id: commitid
109+
run: |
110+
echo "id=$(git -C work rev-parse HEAD)" >> $GITHUB_OUTPUT
100111
- name: Update target
101112
run: |
102113
cd target
@@ -116,3 +127,6 @@ jobs:
116127
Generated by GitHub workflow ${{ github.run_id }}
117128
118129
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
130+
131+
Used commit:
132+
https://github.com/${{ github.repository }}/commit/${{ steps.commitid.outputs.id }}

0 commit comments

Comments
 (0)