Skip to content

Commit

Permalink
workflows: use env variable in place of set-output command
Browse files Browse the repository at this point in the history
In `cockroach-microbench-ci`, we use `set-output` to emit the latest
commit of the target branch. However, it is being deprecated by github
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/.
Therefore this change aims to use env variable instead.

Epic: none

Release note: None
  • Loading branch information
sambhav-jain-16 committed Sep 16, 2024
1 parent 128fcab commit 2ae8a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-essential-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ jobs:
echo "Latest commit on target branch ($TARGET_BRANCH): $LATEST_COMMIT"
# Set the latest commit hash as an output variable
echo "::set-output name=latest_commit::$LATEST_COMMIT"
echo "latest_commit=$LATEST_COMMIT" >> $GITHUB_OUTPUT
if: ${{ github.event_name != 'push' }}
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 2ae8a33

Please sign in to comment.