Skip to content

Commit 4dc838e

Browse files
authored
fix: Use token from github-app-token to update native dependencies (#1217)
1 parent cf1e11e commit 4dc838e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ jobs:
1919
run: |
2020
git config --global user.name "manylinux-bot[bot]"
2121
git config --global user.email "89297709+manylinux-bot[bot]@users.noreply.github.com"
22-
- name: "Run update native dependencies"
23-
run: nox --force-color -s update_native_dependencies
24-
- name: "Run update python dependencies"
25-
run: nox --force-color -s update_python_dependencies update_python_tools
26-
# we use this step to grab a Github App auth token, so that PRs generated by this workflow
27-
# run the GHA tests.
22+
# we use this step to grab a Github App auth token, so that lastversion can query GitHub API
23+
# without rate-limit and PRs get run by GHA.
2824
- uses: tibdex/github-app-token@v1
2925
id: generate-token
3026
with:
3127
app_id: ${{ secrets.MANYLINUX_BOT_APP_ID }}
3228
private_key: ${{ secrets.MANYLINUX_BOT_APP_PRIVATE_KEY }}
29+
- name: "Run update native dependencies"
30+
run: nox --force-color -s update_native_dependencies
31+
env:
32+
GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }}
33+
- name: "Run update python dependencies"
34+
run: nox --force-color -s update_python_dependencies update_python_tools
3335
- name: Create Pull Request
3436
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
3537
uses: peter-evans/create-pull-request@v3

0 commit comments

Comments
 (0)