Skip to content

Update python dependencies #33

Update python dependencies

Update python dependencies #33

name: Update python dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * WED"
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: "opensafely-core/setup-action@v1"
with:
install-just: true
install-uv: true
cache: uv
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: 1031449 # opensafely-core Create PR app
private-key: ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }}
- uses: bennettoxford/update-dependencies-action@v1
id: update
with:
token: ${{ steps.generate-token.outputs.token }}
automerge: false
- name: Notify slack of PR
if: ${{ steps.update.outputs.pull-request-operation != 'none' }}
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
method: chat.postMessage
token: ${{ secrets.BENNETTBOT_SLACK_BOT_TOKEN }}
payload: |
channel: "C080S7W2ZPX"
text: "Update dependencies\n${{ steps.update.outputs.pull-request-url }}"