Skip to content

Commit ad408ef

Browse files
committed
Add GitHub Action to fix missing calendar_date
1 parent 5fd16f2 commit ad408ef

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Fix Missing Calendar Date
2+
3+
on:
4+
push::
5+
branches:
6+
- main
7+
pull_request::
8+
branches:
9+
- main
10+
11+
jobs:
12+
fix_calendar_date:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.9'
23+
24+
- name: Install Dependencies
25+
run: pip install pyyaml
26+
- name: Run Calendar Date Fix Script
27+
run: python .github/scripts/fix_calendar_date.py
28+
- name: Commit and Push Changes
29+
run: |
30+
git config --global user.name \"github-actions[bot]\"
31+
git config --global user.email \"[email protected]\"
32+
git add .
33+
git commit -m \"Automated fix: Added missing calendar_date\" || echo \"No changes needed \"
34+
git push

0 commit comments

Comments
 (0)