Weekly AWS Documentation Check #4
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: Weekly AWS Documentation Check | |
| on: | |
| schedule: | |
| # Run every Monday at 9 AM UTC | |
| - cron: '0 9 * * 1' | |
| workflow_dispatch: | |
| inputs: | |
| force_check: | |
| description: 'Force check all feeds (ignore last_check timestamp)' | |
| required: false | |
| default: 'false' | |
| type: boolean | |
| permissions: | |
| contents: write | |
| issues: write | |
| jobs: | |
| check-updates: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r scripts/requirements.txt | |
| - name: Reset last check timestamp (if forced) | |
| if: ${{ inputs.force_check }} | |
| run: | | |
| echo '{"last_check": "1970-01-01T00:00:00+00:00", "services_checked": []}' > tracking/last-check.json | |
| - name: Check for AWS documentation updates | |
| id: check | |
| run: python scripts/check-aws-updates.py | |
| - name: Commit tracking updates | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add tracking/ | |
| git diff --staged --quiet || git commit -m "chore: update tracking data" | |
| git push | |
| - name: Create GitHub issues for updates | |
| if: steps.check.outputs.updates_found == 'true' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: python scripts/generate-update-issues.py | |
| - name: Summary | |
| run: | | |
| echo "## AWS Documentation Check Complete" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ steps.check.outputs.updates_found }}" == "true" ]; then | |
| echo "Found ${{ steps.check.outputs.update_count }} significant updates." >> $GITHUB_STEP_SUMMARY | |
| echo "GitHub issues have been created for review." >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "No significant updates found." >> $GITHUB_STEP_SUMMARY | |
| fi |