Skip to content

Commit e9cb8cc

Browse files
chore: update CI/CD to remove deprecated set-output command (#63)
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 15de14a commit e9cb8cc

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
@@ -17,9 +17,9 @@ jobs:
1717
run: |
1818
BRANCH="${GITHUB_REF#refs/heads/}"
1919
if [ "$BRANCH" == 'main' ] ; then
20-
echo "::set-output name=tag::latest"
20+
echo "tag=latest" >> $GITHUB_OUTPUT
2121
else
22-
echo "::set-output name=tag::$BRANCH"
22+
echo "tag=$BRANCH" >> $GITHUB_OUTPUT
2323
fi
2424
- run: echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
2525
- name: build container image

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
ref: ${{ github.event.inputs.commit_ref }}
2727
- id: get_sha
2828
run: |
29-
echo "::set-output name=sha::$(git rev-parse HEAD)"
29+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
3030
- uses: actions/github-script@v3
3131
with:
3232
github-token: ${{ secrets.MOVE2KUBE_PATOKEN }}

0 commit comments

Comments
 (0)