Skip to content

Update CRA News and Resources #150

Update CRA News and Resources

Update CRA News and Resources #150

name: Update CRA News and Resources
on:
schedule:
# Run every 6 hours for more frequent updates
- cron: '0 */6 * * *'
workflow_dispatch:
# Allow manual triggering
jobs:
update-cra-news:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r .github/scripts/requirements.txt
- name: Update Wiki with latest news
run: |
python .github/scripts/update_wiki_news.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download official documents
run: |
python .github/scripts/download_official_docs.py
- name: Check for changes
id: check_changes
run: |
echo "changes=true" >> $GITHUB_OUTPUT
- name: Update summary
run: |
echo "## CRA News Update Summary" >> $GITHUB_STEP_SUMMARY
echo "- Updated GitHub Wiki with latest CRA news" >> $GITHUB_STEP_SUMMARY
echo "- Downloaded official documents" >> $GITHUB_STEP_SUMMARY
echo "- Processed on $(date)" >> $GITHUB_STEP_SUMMARY