File tree 1 file changed +8
-5
lines changed
actions/commit_pr_and_merge
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ inputs:
15
15
outputs :
16
16
git_tag_or_hash :
17
17
description : The git tag (or hash if no tag provided) of the merge commit
18
- value : ${{ steps.tag-commit.outcome == 'success' && steps.tag-commit.outputs.commit_tag || steps.get-commit-hash.outputs.commit_sha }}
18
+ value : ${{ steps.tag-commit.outcome == 'success' && steps.tag-commit.outputs.commit_tag || steps.get-commit-sha.outputs.commit_sha }}
19
+ commit_sha :
20
+ description : The git hash of the merge commit
21
+ value : ${{ steps.get-commit-sha.outputs.commit_sha }}
19
22
20
23
runs :
21
24
using : " composite"
75
78
});
76
79
core.setOutput('commit_tag', '${{ inputs.tag }}');
77
80
78
- - name : Get commit hash
81
+ - name : Get commit SHA
79
82
uses : actions/github-script@v7
80
- id : get-commit-hash
81
- if : ${{ ! inputs.tag }}
83
+ id : get-commit-sha
82
84
with :
83
85
script : |
84
86
const pr = (await github.rest.pulls.get({
95
97
with :
96
98
script : |
97
99
console.log('Result', '${{ steps.tag-commit.outcome }}');
98
- console.log('Commit tag', '${{ steps.tag-commit.outputs.commit_tag }}');
100
+ console.log('Commit tag', '${{ steps.tag-commit.outputs.commit_tag }}');
101
+ console.log('Commit sha', '${{ steps.get-commit-sha.outputs.commit_sha }}');
You can’t perform that action at this time.
0 commit comments