-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (40 loc) · 1.27 KB
/
bumpup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Bump up gem version
on:
workflow_dispatch:
inputs:
gem-version:
description: Gem version
required: true
type: string
jobs:
bump_up_gem_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: update sunmodule
run: git submodule foreach git pull origin master
# ref https://qiita.com/hatsu/items/a7acd14259c3914aad4d
- name: update gem version
run: |
sed -i "s/VERSION = \".*\"/VERSION = \"${{ github.event.inputs.gem-version }}\"/" lib/jpostcode/version.rb
- name: bundle install
run: bundle install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
base: master
branch: bump-up-version-${{ github.event.inputs.gem-version }}
delete-branch: true
title: Bump ${{ github.event.inputs.gem-version }}
commit-message: "Bump ${{ github.event.inputs.gem-version }}"