Skip to content

🚅 _ BT - Create Version Bump PR For Core Gems & NPM Packages #25

🚅 _ BT - Create Version Bump PR For Core Gems & NPM Packages

🚅 _ BT - Create Version Bump PR For Core Gems & NPM Packages #25

Workflow file for this run

name: "Create Version Bump PR For Core Gems & NPM Packages"
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: "ruby/setup-ruby@v1"
with:
bundler-cache: true
ruby-version: 3.2
- uses: "actions/setup-node@v3"
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: "Configure bundler"
run: bundle config unset deployment
- name: "Install thor"
run: gem install thor
- name: "Bump core"
id: bump-core
run: ./bin/bump-core
- name: "Create Pull Request"
id: cpr
uses: peter-evans/create-pull-request@v5
with:
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
committer: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
commit-message: "BT-Core version bump: ${{ inputs.versionBump }} - ${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}"
branch: "core-version-bump/${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}"
delete-branch: true
title: "BT-Core version bump: ${{ inputs.versionBump }} - ${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}"
add-paths: "Gemfile.lock,yarn.lock"
body: |
Version bump of the `core` ruby gems and npm packages to version `${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}`
Tag v${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
core bump
#reviewers: andreculver,jagthedrummer,pascallaliberte