Update all conference URLs to new communityovercode.apache.org domain #937
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: Fetch the Google Calendar | |
| on: | |
| workflow_dispatch: # only works in default branch | |
| push: | |
| schedule: # only works in default branch | |
| - cron: '50 9 * * *' | |
| permissions: | |
| contents: write | |
| jobs: | |
| fetch-calendar: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Curl calendar | |
| run: | | |
| git config user.email "dev@community.apache.org" | |
| git config user.name "Comdev automated workflow" | |
| cd static/js | |
| echo "download calendar" | |
| bash ../../getcalendar.sh | |
| git status | |
| echo "preparing to push change(s)" | |
| git add . | |
| if git commit -m "Update calendar data (getcalendar.yml workflow)" | |
| then | |
| git push | |
| echo "Changed!" | |
| exit 0 | |
| else | |
| echo "No change" | |
| true # ensure success | |
| fi | |
| env: # for gh | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |