mirror of
https://github.com/Crocmagnon/cookiecutter-django.git
synced 2024-10-31 20:13:54 +01:00
Move to app token for update dependencies PR
This commit is contained in:
parent
e673b5eceb
commit
76c3f5038f
2 changed files with 8 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "pip"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "weekly"
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
|
|
|
@ -3,7 +3,7 @@ name: Update dependencies
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 18 * * TUE'
|
- cron: '0 18 * * MON'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
@ -27,11 +27,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install pip-tools invoke
|
pip install pip-tools invoke
|
||||||
invoke update-dependencies --no-sync
|
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
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
id: create-pull-request
|
id: create-pull-request
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PERSONAL_TOKEN_PR }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
commit-message: Update dependencies
|
commit-message: Update dependencies
|
||||||
base: master
|
base: master
|
||||||
branch: update-dependencies
|
branch: update-dependencies
|
||||||
|
|
Loading…
Reference in a new issue