mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 14:23:53 +01:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Update dependencies
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 18 * * TUE'
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
contents: write
|
|
|
|
jobs:
|
|
update:
|
|
name: Update dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: master
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
cache: pip
|
|
- name: Update dependencies
|
|
run: |
|
|
pip install pip-tools invoke
|
|
invoke update-dependencies --no-sync
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v4
|
|
id: create-pull-request
|
|
with:
|
|
token: ${{ secrets.PERSONAL_TOKEN_PR }}
|
|
commit-message: Update dependencies
|
|
base: master
|
|
branch: update-dependencies
|
|
title: Update dependencies
|
|
delete-branch: true
|
|
- name: Enable auto merge
|
|
uses: peter-evans/enable-pull-request-automerge@v2
|
|
with:
|
|
# Can't use the fine-grained token here because they don't have access to the GraphQL API.
|
|
pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}
|