From fcd7635b79dc910f2e7e0be19853c61a36710bf4 Mon Sep 17 00:00:00 2001 From: Harikrishnan Balagopal Date: Mon, 21 Aug 2023 11:03:59 +0530 Subject: [PATCH] chore: update CI/CD to remove deprecated set-output command See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Signed-off-by: Harikrishnan Balagopal --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34fefd5..2a2b8af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,9 +46,9 @@ jobs: run: | BRANCH="${GITHUB_REF#refs/heads/}" if [ "$BRANCH" == 'main' ] ; then - echo "::set-output name=tag::latest" + echo "tag=latest" >> $GITHUB_OUTPUT else - echo "::set-output name=tag::$BRANCH" + echo "tag=$BRANCH" >> $GITHUB_OUTPUT fi - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcb18e6..78b09bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: ref: ${{ github.event.inputs.commit_ref }} - id: get_sha run: | - echo "::set-output name=sha::$(git rev-parse HEAD)" + echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - uses: actions/github-script@v3 with: github-token: ${{ secrets.MOVE2KUBE_PATOKEN }}