Skip to content

πŸš… _ BT - Create Version Bump PR For Core Gems & NPM Packages #135

πŸš… _ BT - Create Version Bump PR For Core Gems & NPM Packages

πŸš… _ BT - Create Version Bump PR For Core Gems & NPM Packages #135

Workflow file for this run

name: " πŸš… _ BT - Create Version Bump PR For Core Gems & NPM Packages"
on:
workflow_dispatch:
inputs:
versionNumber:
description: 'Version Number'
required: true
type: string
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
- name: Enable corepack
run: corepack enable
- uses: "actions/setup-node@v4"
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 ${{ inputs.versionNumber }}
- 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, Gemfile.lock, package.json, yarn.lock"
token: ${{ secrets.UPGRADE_PR_PAT }}
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