Skip to content

Commit c87971b

Browse files
chore: update CI/CD to remove deprecated set-output command (#151)
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent b85f422 commit c87971b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
run: |
4444
BRANCH="${GITHUB_REF#refs/heads/}"
4545
if [ "$BRANCH" == 'main' ] ; then
46-
echo "::set-output name=tag::latest"
46+
echo "tag=latest" >> $GITHUB_OUTPUT
4747
else
48-
echo "::set-output name=tag::$BRANCH"
48+
echo "tag=$BRANCH" >> $GITHUB_OUTPUT
4949
fi
5050
- name: pull latest image to reuse layers
5151
run: |

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
ref: ${{ github.event.inputs.commit_ref }}
5555
- id: get_sha
5656
run: |
57-
echo "::set-output name=sha::$(git rev-parse HEAD)"
57+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
5858
- uses: actions/github-script@v3
5959
with:
6060
github-token: ${{ secrets.MOVE2KUBE_PATOKEN }}

0 commit comments

Comments
 (0)