Skip to content

Verify And Update The Raku Star Modules #492

Verify And Update The Raku Star Modules

Verify And Update The Raku Star Modules #492

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"