diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 428f9828..9485d5f3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: result-encoding: string - name: Get branch name shell: bash - run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" + run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT" id: get_branch echo-state: diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index e8ed4982..c74d554e 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -33,7 +33,7 @@ jobs: result-encoding: string - name: Get branch name shell: bash - run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" + run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT" id: get_branch echo-state: