Skip to content

Add GitHub Action to fix missing calendar_date #1

Add GitHub Action to fix missing calendar_date

Add GitHub Action to fix missing calendar_date #1

name: Fix Missing Calendar Date
on:
push::
branches:
- main
pull_request::
branches:
- main

Check failure on line 10 in .github/workflows/update_calendar_date.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update_calendar_date.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
jobs:
fix_calendar_date:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Dependencies
run: pip install pyyaml
- name: Run Calendar Date Fix Script
run: python .github/scripts/fix_calendar_date.py
- name: Commit and Push Changes
run: |
git config --global user.name \"github-actions[bot]\"
git config --global user.email \"[email protected]\"
git add .
git commit -m \"Automated fix: Added missing calendar_date\" || echo \"No changes needed \"
git push