-
Notifications
You must be signed in to change notification settings - Fork 92
53 lines (46 loc) · 1.42 KB
/
bump-package-version.yml
File metadata and controls
53 lines (46 loc) · 1.42 KB
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
name: Bump package version
on:
workflow_dispatch:
inputs:
package:
description: 'Package to bump'
required: true
type: choice
options:
- infoview-api
- infoview
- unicode-input
- unicode-input-component
version:
description: 'New version (e.g. 0.12.0)'
required: true
type: string
permissions:
contents: write
pull-requests: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Configure git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump version
run: ./bump-package-version.sh "${{ inputs.package }}" "${{ inputs.version }}"
- name: Create pull request
run: |
branch="bump/${{ inputs.package }}-${{ inputs.version }}"
git checkout -b "$branch"
git push -u origin "$branch"
gh pr create \
--title "chore: bump @leanprover/${{ inputs.package }} to ${{ inputs.version }}" \
--body "Automated version bump of \`@leanprover/${{ inputs.package }}\` to \`${{ inputs.version }}\`."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}