Update iCal #1548
This file contains 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: Update iCal | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "1 0 * * *" | |
jobs: | |
build: | |
name: Update | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: master | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "10.x" | |
- run: npm install | |
- name: Generate iCal files | |
env: | |
ACCESSTOKEN: ${{ secrets.ACCESSTOKEN }} | |
run: npm run scripts:ical | |
- name: Generate Timestamp | |
run: | | |
echo "Last updated on $(date +'%Y-%m-%d')" > docs/cal/INFO.md | |
- name: Commit files | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add docs/cal/* | |
git commit -m "Update ical files" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |