Skip to content

Commit 2e2bd55

Browse files
chore: update CI/CD to remove deprecated set-output command (#150)
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 81eab5d commit 2e2bd55

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
@@ -46,9 +46,9 @@ jobs:
4646
run: |
4747
BRANCH="${GITHUB_REF#refs/heads/}"
4848
if [ "$BRANCH" == 'main' ] ; then
49-
echo "::set-output name=tag::latest"
49+
echo "tag=latest" >> $GITHUB_OUTPUT
5050
else
51-
echo "::set-output name=tag::$BRANCH"
51+
echo "tag=$BRANCH" >> $GITHUB_OUTPUT
5252
fi
5353
- name: Set up QEMU
5454
uses: docker/setup-qemu-action@v2

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)