-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.45 KB
/
update-dependencies.yml
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
38
39
40
41
42
43
44
45
---
name: 'Update dependencies'
on:
workflow_dispatch:
schedule:
# Run every week on Sunday at 00:00 AM UTC
- cron: '0 0 * * 0'
jobs:
build:
name: 'Update dependencies'
runs-on: [ubuntu-latest]
steps:
- name: 'Run developer-tools update (2.0)'
uses: actions/github-script@v6
with:
# Token has to be generated on a user account that controls the remote repository.
# The _only_ scope to select is "Access public repositories", nothing more.
github-token: "${{ secrets.PAT_TOKEN }}"
debug: true
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'simplesamlphp',
repo: 'simplesamlphp-assets-base',
workflow_id: 'update-dependencies.yml',
ref: 'release-2.0'
})
- name: 'Run developer-tools update (2.1)'
uses: actions/github-script@v6
with:
# Token has to be generated on a user account that controls the remote repository.
# The _only_ scope to select is "Access public repositories", nothing more.
github-token: "${{ secrets.PAT_TOKEN }}"
debug: true
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'simplesamlphp',
repo: 'simplesamlphp-assets-base',
workflow_id: 'update-dependencies.yml',
ref: 'release-2.1'
})