get insyokutenneigyoukyoka #5
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: get insyokutenneigyoukyoka | |
on: | |
schedule: | |
- cron: '0 10 * * *' # 1日1回 UTCでの10時に | |
# repository_dispatch: | |
# types: [get_insyokutenneigyoukyoka] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Copy byouin_list | |
run: curl -o data/byouin_list/org/byouin_list.xlsx "https://www.city.kumamoto.jp/opendata/pub/byouin_list.xlsx" | |
- name: Copy Insyokutenneigyoukyoka | |
run: curl -o data/Insyokutenneigyoukyoka/org/Insyokutenneigyoukyoka.csv "https://www.city.kumamoto.jp/opendata/pub/Insyokutenneigyoukyoka.csv" | |
- name: Commit files | |
run: | | |
git config --local user.useConfigOnly false | |
git config --local user.name "Scraping Bot" | |
git config --local user.email "[email protected]" | |
git status | grep modified && git add . && git commit -v -m "[Bot] GitHub Actions - get data at $(date +'%Y-%m-%d')" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 |