Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update jpostcode-data on Github Actions #196

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/jpostcode-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: jpostcode-data

on:
repository_dispatch:
types: [update-jpostcode-data]

jobs:
update-jpostcode-data:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: recursive
- name: Setup Ruby
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Submodule Update
run: git submodule update --remote --recursive
- name: Update Gem Version
run: |
TIMESTAMP=`date +"%Y%m%d"`
sed -i "" -e "s/^\( \+VERSION = '[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\.\)[0-9]\{8\}'$/\1${TIMESTAMP}'/g" lib/jpostcode/version.rb
- name: Update Gemfile.lock
run: |
bundle config unset deployment
bundle update --conservative jpostcode
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
base: master
branch: bump_jpostcode-rb
branch-suffix: timestamp
delete-branch: true
title: Bump Version
commit-message: update jpostcode-data
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/pkg/
/spec/reports/
/tmp/
/vendor/bundle/