File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,25 @@ jobs:
31
31
- name : Draw keymaps
32
32
run : nix run .#draw
33
33
34
- # TODO print to $GITHUB_STEP_SUMMARY
35
34
- name : Commit changes
35
+ id : commit
36
36
uses : stefanzweifel/git-auto-commit-action@v4
37
37
with :
38
38
commit_message : " [Draw] ${{ github.event.head_commit.message || '(Manually triggered)' }}"
39
39
file_pattern : img/**
40
40
41
+ - name : Summarize
42
+ run : |
43
+ sha="${{ steps.commit.outputs.commit_hash }}"
44
+ url="${{ github.server_url }}/${{ github.repository }}/commit/$sha"
45
+
46
+ echo "## Summary" >> $GITHUB_STEP_SUMMARY
47
+
48
+ if [[ -z "$sha" ]]; then
49
+ echo "Nothing to commit!" >> $GITHUB_STEP_SUMMARY
50
+ else
51
+ echo "[\`${sha:0:6}\`]($url) pushed to \`${{ github.ref_name }}\`." >> $GITHUB_STEP_SUMMARY
52
+ fi
53
+
54
+ echo >> $GITHUB_STEP_SUMMARY
55
+
You can’t perform that action at this time.
0 commit comments