File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1818 run : |
1919 COMMIT_ID="$(git rev-parse "${{ github.head_ref }}")"
2020 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 "
2222 - name : create test commit
2323 run : |
2424 touch test_file
4343 cd new_head
4444 last_pushed_commit="$(git rev-parse "${{ github.head_ref }}")"
4545 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
4747 echo "Something got pushed to ${{ github.head_ref }}"
4848 exit 1
4949 fi
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ if [[ $REV == "$PREV_REV" ]]; then
6565 INPUT_PUSH=' false'
6666fi
6767echo " REVISION=${REV} " >> " $GITHUB_ENV "
68- echo " ::set-output name= version:: ${REV} "
68+ echo " version= ${REV} " >> " $GITHUB_OUTPUT "
6969
7070CURRENT_BRANCH=" $( git branch --show-current) "
7171INPUT_BRANCH=" ${INPUT_BRANCH:- $CURRENT_BRANCH } "
You can’t perform that action at this time.
0 commit comments