Scheduled Polkadot Docs Tests #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |