Syllabus scheduled update #163
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: Syllabus scheduled update | |
on: | |
schedule: | |
- cron: '0 15 * * 6' | |
workflow_dispatch: | |
jobs: | |
update: | |
environment: actions | |
runs-on: ubuntu-latest | |
env: | |
TZ: Asia/Tokyo | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
- name: Run download script | |
run: | | |
wget -O download.sh https://git.io/JinJf | |
chmod +x download.sh | |
./download.sh | |
rm download.sh | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
title: Scheduled update of syllabus data (${{ steps.date.outputs.date }}) | |
branch: update_${{ steps.date.outputs.date }} | |
author: GitHub Action <[email protected]> | |
committer: GitHub Action <[email protected]> | |
commit-message: | | |
update csv: ${{ steps.date.outputs.date }} | |
labels: automated pr | |
delete-branch: true |