Switch to app token for update dependencies
This commit is contained in:
parent
08314767b8
commit
4663c37d15
2 changed files with 9 additions and 8 deletions
4
.github/dependabot.yaml
vendored
4
.github/dependabot.yaml
vendored
|
@ -1,9 +1,5 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
- package-ecosystem: "docker"
|
||||
directory: "/"
|
||||
schedule:
|
||||
|
|
13
.github/workflows/update-dependencies.yaml
vendored
13
.github/workflows/update-dependencies.yaml
vendored
|
@ -3,11 +3,10 @@ name: Update dependencies
|
|||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 18 * * TUE'
|
||||
- cron: '0 18 * * MON'
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
update:
|
||||
|
@ -27,11 +26,17 @@ jobs:
|
|||
run: |
|
||||
pip install pip-tools invoke
|
||||
invoke update-dependencies --no-sync
|
||||
- name: Generate token
|
||||
uses: tibdex/github-app-token@v1
|
||||
id: generate-token
|
||||
with:
|
||||
app_id: ${{ secrets.PR_APP_ID }}
|
||||
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
id: create-pull-request
|
||||
with:
|
||||
token: ${{ secrets.PERSONAL_TOKEN_PR }}
|
||||
token: ${{ steps.generate-token.outputs.token }}
|
||||
commit-message: Update dependencies
|
||||
base: master
|
||||
branch: update-dependencies
|
||||
|
|
Reference in a new issue