Skip to content

Scheduled Polkadot Docs Tests #23

Scheduled Polkadot Docs Tests

Scheduled Polkadot Docs Tests #23

name: Scheduled Polkadot Docs Tests
on:
schedule:
- cron: '0 15 * * 0' # Weekly on Sunday at 15:00 UTC (10:00 PM Bangkok)
workflow_dispatch:
jobs:
trigger-all:
if: github.repository == 'polkadot-developers/polkadot-cookbook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger all polkadot-docs workflows
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for workflow in .github/workflows/polkadot-docs-*.yml; do
name=$(basename "$workflow")
# Skip this scheduled workflow itself
if [ "$name" != "polkadot-docs-scheduled.yml" ]; then
echo "Triggering $name..."
gh workflow run "$name" || echo "Failed to trigger $name"
fi
done