[e988c2]: / .github / workflows / update-dependencies.yml

Download this file

38 lines (32 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update python dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * WED"
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: bennettoxford/update-dependencies-action@v1
id: update
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Notify slack of PR
if: ${{ steps.update.outputs.pull-request-operation != 'none' }}
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
method: chat.postMessage
token: ${{ secrets.BENNETTBOT_SLACK_BOT_TOKEN }}
payload: |
channel: "C080S7W2ZPX"
text: "Update dependencies\n${{ steps.update.outputs.pull-request-url }}"