File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Run precommit checks on self
22on : pull_request
33jobs :
4- log-github-event-goodies :
5- name : " Log everything on GitHub Event"
6- runs-on : ubuntu-latest
7- steps :
8- - name : Logging
9- run : |
10- echo "${{toJSON(github.event)}}"
114 precommit-check :
125 runs-on : ${{ matrix.os }}
136 strategy :
2619 echo 'commit_message<<EOF' >> $GITHUB_ENV
2720 git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_ENV
2821 echo 'EOF' >> $GITHUB_ENV
29- - name : message1
30- run : echo "The message is ${{ github.event.head_commit.message }}"
31- - name : message2
32- run : echo "The message is ${{ github.event.commits[0].message }}"
33- - uses : ccdc-opensource/commit-hooks@update_status_check
22+ shell : bash
23+ - uses : ccdc-opensource/commit-hooks@main
3424 with :
3525 commitMessage : ${{ env.commit_message }}
You can’t perform that action at this time.
0 commit comments