-
Notifications
You must be signed in to change notification settings - Fork 52
35 lines (34 loc) · 1.1 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
name: Create version bump ticket
on:
workflow_dispatch:
inputs:
from:
description: "Polkadot version to bump from (ex: v0.9.40)"
required: true
to:
description: "Polkadot version to bump to (ex: v0.9.42)"
required: true
jobs:
create_bump_ticket:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Generate version bump issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd tools
yarn install
yarn --silent run print-version-bump-info -- --from ${{ github.event.inputs.from }} --to ${{ github.event.inputs.to }} | tee ../version-bump.md
- name: Create version bump issue
uses: peter-evans/create-issue-from-file@v3
with:
title: Update polkadot-sdk from ${{ github.event.inputs.from }} to ${{ github.event.inputs.to }}
content-filepath: ./version-bump.md
labels: |
automated issue