From 453ab0e6089b7b2eff1320d9b1eb47539ba13d88 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat <ariya@metabase.com> Date: Tue, 30 May 2023 08:15:18 -0700 Subject: [PATCH] CI: Avoid the deprecated set-output (#31146) https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/uberjar.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.yml index e6e2dd55274..c7f5d52b28c 100644 --- a/.github/workflows/uberjar.yml +++ b/.github/workflows/uberjar.yml @@ -87,8 +87,10 @@ jobs: steps: - name: Extract and clean branch name shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | sed 's/[^-._a-zA-Z0-9]/-/g')" + run: echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^-._a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT id: extract_branch + - name: Verify the intended tag of the container image + run: echo "Container image will be tagged as ${{ steps.extract_branch.outputs.branch }}-${{ matrix.edition }}" - name: Check out the code (Dockerfile needed) uses: actions/checkout@v3 with: @@ -203,8 +205,10 @@ jobs: steps: - name: Extract and clean branch name shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | sed 's/[^-._a-zA-Z0-9]/-/g')" + run: echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^-._a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT id: extract_branch + - name: Verify the intended tag of the container image + run: echo "Container image will be tagged as ${{ steps.extract_branch.outputs.branch }}-${{ matrix.edition }}" - name: Check out the code (Dockerfile needed) uses: actions/checkout@v3 with: -- GitLab