make changes to the workflow file
Update Calendar / update-calendar (push) Failing after 3s
Details
Update Calendar / update-calendar (push) Failing after 3s
Details
This commit is contained in:
parent
006f6046f1
commit
00052f050d
|
|
@ -33,19 +33,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python generate_calendar.py
|
python generate_calendar.py
|
||||||
|
|
||||||
- name: Check for changes
|
|
||||||
id: check_changes
|
|
||||||
run: |
|
|
||||||
git diff --quiet calendar.ics README.md || echo "changed=true" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Commit and push changes
|
||||||
if: steps.check_changes.outputs.changed == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "noreply@thelinuxcast.org"
|
git config --local user.email "noreply@thelinuxcast.org"
|
||||||
git config --local user.name "Calendar Bot"
|
git config --local user.name "Calendar Bot"
|
||||||
git add calendar.ics README.md
|
git add calendar.ics README.md
|
||||||
git commit -m "Auto-update calendar files
|
if git diff --staged --quiet; then
|
||||||
|
echo "No changes to commit"
|
||||||
|
else
|
||||||
|
git commit -m "Auto-update calendar files
|
||||||
|
|
||||||
🤖 Generated with automation"
|
🤖 Generated with automation"
|
||||||
git pull --rebase origin main
|
git pull --rebase origin main
|
||||||
git push
|
git push
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue