Merge pull request #803 from nsoranzo/update_dep_only_on_pypa_repo

Update dependencies workflow only on pypa repo
This commit is contained in:
Joe Rickerby
2021-08-28 12:41:55 +01:00
committed by GitHub
@@ -8,6 +8,7 @@ on:
jobs:
update-dependencies:
name: Update dependencies
if: github.repository_owner == 'pypa' || github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -24,6 +25,7 @@ jobs:
# run the GHA tests.
- uses: tibdex/github-app-token@v1
id: generate-token
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel'
with:
app_id: ${{ secrets.CIBUILDWHEEL_BOT_APP_ID }}
private_key: ${{ secrets.CIBUILDWHEEL_BOT_APP_PRIVATE_KEY }}