File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 14
14
- uses : actions/setup-python@v2
15
15
with :
16
16
python-version : " 3.7"
17
- - name : Set the commit message
17
+ - name : Get the commit message
18
18
run : |
19
- echo "commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV
20
- - uses : ccdc-opensource/commit-hooks@jira_bld_5704_jira_id_in_commit_message
19
+ echo "commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV
20
+ - uses : ccdc-opensource/commit-hooks@v3
21
21
with :
22
22
commitMessage : ${{ env.commit_message }}
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ The commit will be flagged if it includes certain text files with:
19
19
20
20
## Usage
21
21
``` yaml
22
- - uses : ccdc-opensource/commit-hooks@v1
22
+ - uses : ccdc-opensource/commit-hooks@v3
23
+ with :
24
+ commitMessage : ' The commit message'
23
25
` ` `
24
26
25
27
## Scenarios
40
42
- uses : actions/setup-python@v2
41
43
with :
42
44
python-version : " 3.7"
43
- - uses : ccdc-opensource/commit-hooks@v2
45
+ - name : Get the commit message
46
+ run : |
47
+ echo "commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV
48
+ - uses : ccdc-opensource/commit-hooks@v3
49
+ with :
50
+ commitMessage : ${{ env.commit_message }}
44
51
` ` `
45
52
46
53
# commit-hooks
Original file line number Diff line number Diff line change 15
15
16
16
if __name__ == '__main__' :
17
17
18
- for key in sorted (os .environ .keys ()):
19
- print (f'{ key } : { os .environ [key ]} ' )
20
-
21
18
message = os .getenv ('INPUT_COMMITMESSAGE' )
22
19
print (f'Commit message: { message } ' )
23
20
You can’t perform that action at this time.
0 commit comments