diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 40773d7df8..09922b120e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - ref: ${{ github.event.workflow_run.head_branch }} + ref: ${{ github.ref_name }} - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 @@ -90,7 +90,6 @@ jobs: name: Release runs-on: ubuntu-latest needs: candidate_release - environment: release permissions: contents: write # to modify GitHub releases id-token: write # to authenticate as Trusted Publisher to pypi.org