🚅 _ BT - Create Version Bump PR For Core Gems & NPM Packages #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "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: "Version bump: ${{ inputs.versionBump }} - ${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}" | |
branch: "version-bump/${{ steps.bump-core.outputs.NEW_VERSION_NUMBER }}" | |
delete-branch: true | |
title: "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` | |
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 |