Skip to content

Commit 08e5b97

Browse files
authored
ci: modernize update workflow (#2010)
1 parent d4a2945 commit 08e5b97

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ jobs:
2020
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
2121
runs-on: ubuntu-latest
2222
steps:
23+
24+
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
25+
# run the GHA tests.
26+
- uses: actions/create-github-app-token@v1
27+
id: generate-token
28+
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
29+
with:
30+
app_id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
31+
private_key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}
32+
2333
- uses: actions/checkout@v4
2434

2535
- uses: wntrblm/[email protected]
@@ -33,15 +43,6 @@ jobs:
3343
- name: "Run update: docs user projects"
3444
run: nox --force-color -s update_proj -- --auth=${{ secrets.GITHUB_TOKEN }}
3545

36-
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
37-
# run the GHA tests.
38-
- uses: tibdex/github-app-token@v2
39-
id: generate-token
40-
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
41-
with:
42-
app_id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
43-
private_key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}
44-
4546
- name: Create Pull Request
4647
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
4748
uses: peter-evans/create-pull-request@v7
@@ -53,7 +54,6 @@ jobs:
5354
5455
PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
5556
branch: update-dependencies-pr
56-
committer: "cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>"
57-
author: "cibuildwheel-bot[bot] <83877280+cibuildwheel-bot[bot]@users.noreply.github.com>"
57+
sign-commits: true
5858
token: ${{ steps.generate-token.outputs.token }}
5959
delete-branch: true

0 commit comments

Comments
 (0)