diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5213b8ae604b..aa5eff839fbb 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -238,8 +238,10 @@ jobs: if: env.HAS_SECRETS == 'HAS_SECRETS' - id: branch - run: echo "branch=${{ github.head_ref || github.ref_name }}" >> $GITHUB_OUTPUT + run: echo "branch=${GITHUB_REF}" >> $GITHUB_OUTPUT if: env.HAS_SECRETS == 'HAS_SECRETS' + env: + GITHUB_REF: ${{ github.head_ref || github.ref_name }} - uses: actions/download-artifact@v3 with: