Sha256: 0a65718b3f3a911e9e5908e4fd3a923cdeca174a15e504dfda16a497b1b4e5a7

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

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: update sunmodule
      run: git submodule foreach git pull origin master

    # ref https://qiita.com/hatsu/items/a7acd14259c3914aad4d
    - name: update gem version
      env:
        VERSION: ${{ github.event.inputs.gem-version }}
      run: |
        sed -i "s/VERSION = .*/VERSION = '${VERSION}'/" lib/jpostcode/version.rb

    - name: bundle install
      run: |
        bundle config set frozen false
        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 }}"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jpostcode-1.0.0.20241201 .github/workflows/bumpup.yml
jpostcode-1.0.0.20241101 .github/workflows/bumpup.yml
jpostcode-1.0.0.20241001 .github/workflows/bumpup.yml
jpostcode-1.0.0.20240901 .github/workflows/bumpup.yml
jpostcode-1.0.0.20240807 .github/workflows/bumpup.yml