Skip to content

Commit

Permalink
Add an update-dependencies workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Oct 23, 2024
1 parent 5d68e6d commit cca8b3f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update python dependencies

on:
workflow_dispatch:
schedule:
- cron: "0 23 * * *"

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
with:
python-version: "3.11"
install-just: true

- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: 1031449 # opensafely-core Create PR app
private-key: ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }}

- uses: opensafely-core/update-dependencies-action@v1
with:
token: ${{ steps.generate-token.outputs.token }}

0 comments on commit cca8b3f

Please sign in to comment.