-
Notifications
You must be signed in to change notification settings - Fork 41
47 lines (38 loc) · 1.1 KB
/
update_modules.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
46
47
name: Verify And Update The Raku Star Modules
on:
push:
paths:
- 'etc/modules.txt'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
verify_raku_modules:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: 'star'
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Check if self-triggering is needed
run: |
cd ./star
if git log -1 --pretty=format:%B | grep -qF "[skip workflow] | Following the https://github.com/rakudo/rakudo/ release cycle"; then
echo "Workflow self-triggering skipped."
exit 0
fi
cd ..
- name: Run script to verify and update links
run: |
sudo apt update && sudo apt upgrade && sudo apt install jq -y -qq
cd ./star
bash ./tools/pretty_print_modules.bash
cd ..
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
cwd: './star'
message: "Auto-update /etc/modules.txt [skip workflow]"
push: "true"