File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
run : |
19
19
COMMIT_ID="$(git rev-parse "${{ github.head_ref }}")"
20
20
echo "The sha of the starting commit is $COMMIT_ID"
21
- echo "::set-output name=commit:: $COMMIT_ID"
21
+ echo "SHA= $COMMIT_ID" >>"$GITHUB_OUTPUT "
22
22
- name : create test commit
23
23
run : |
24
24
touch test_file
43
43
cd new_head
44
44
last_pushed_commit="$(git rev-parse "${{ github.head_ref }}")"
45
45
echo "Commit sha on origin: $last_pushed_commit"
46
- if [[ $last_pushed_commit != ${{ steps.capture.outputs.commit }} ]]; then
46
+ if [[ $last_pushed_commit != ${{ steps.capture.outputs.SHA }} ]]; then
47
47
echo "Something got pushed to ${{ github.head_ref }}"
48
48
exit 1
49
49
fi
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ if [[ $REV == "$PREV_REV" ]]; then
65
65
INPUT_PUSH=' false'
66
66
fi
67
67
echo " REVISION=${REV} " >> " $GITHUB_ENV "
68
- echo " ::set-output name= version:: ${REV} "
68
+ echo " version= ${REV} " >> " $GITHUB_OUTPUT "
69
69
70
70
CURRENT_BRANCH=" $( git branch --show-current) "
71
71
INPUT_BRANCH=" ${INPUT_BRANCH:- $CURRENT_BRANCH } "
You can’t perform that action at this time.
0 commit comments