Add GHA environment to update-dependencies workflow (#2778)

* Add GHA environment to update-dependencies workflow

See #2770

* activate the create-pull-request action to see if it works

* Revert "activate the create-pull-request action to see if it works"

This reverts commit b44f94d7a5c852b93b16157831b698f9c250628d.

* Only request the environment when we need it
This commit is contained in:
Joe Rickerby
2026-03-16 19:47:36 +00:00
committed by GitHub
parent a94d4faa11
commit 741be9402c
@@ -23,6 +23,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
environment: ${{ github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel' && 'update-dependencies-workflow' || '' }}
steps:
# we use this step to grab a Github App auth token, so that PRs generated by this workflow