auto-update #42
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: auto-update | |
on: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
update-jpostcode-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: update jpostcode data | |
run: bundle exec rake jpostcode:data:update_all | |
env: | |
RUBYOPT: "-w" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
base: master | |
branch: update_jpostcode_data | |
branch-suffix: timestamp | |
delete-branch: true | |
title: bundle exec rake jpostcode:data:update_all | |
commit-message: bundle exec rake jpostcode:data:update_all |