forked from bullet-train-co/bullet_train
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.98 KB
/
version-bump.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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