From cd484bd4831d2149759ff9f4db15c70efddc2523 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 30 Jan 2024 19:40:16 +0100 Subject: [PATCH] Update extract-branch-name to new syntax using GITHUB_OUTPUT --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55420b81a..13cb12c83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -505,9 +505,8 @@ jobs: python-version: "3.11" - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" - id: extract_branch + run: echo "branch=${GITHUB_REF##*/})" >> "$GITHUB_OUTPUT" + id: extract-branch - name: Dockerhub login env: @@ -536,7 +535,7 @@ jobs: - name: Build and test and push docker images env: - BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }} + BRANCH_NAME: ${{ steps.extract-branch.outputs.branch }} run: | build_helpers/publish_docker_multi.sh @@ -554,8 +553,8 @@ jobs: - name: Extract branch name shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" - id: extract_branch + run: echo "branch=${GITHUB_REF##*/})" >> "$GITHUB_OUTPUT" + id: extract-branch - name: Dockerhub login env: @@ -566,7 +565,7 @@ jobs: - name: Build and test and push docker images env: - BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }} + BRANCH_NAME: ${{ steps.extract-branch.outputs.branch }} GHCR_USERNAME: ${{ github.actor }} GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |