Create version bump ticket #38
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 ticket | |
on: | |
workflow_dispatch: | |
inputs: | |
from: | |
description: "Polkadot version to bump from (ex: v1.3.0)" | |
required: true | |
to: | |
description: "Polkadot version to bump to (ex: v1.7.2)" | |
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@v5 | |
with: | |
title: Update polkadot-sdk from ${{ github.event.inputs.from }} to ${{ github.event.inputs.to }} | |
content-filepath: ./version-bump.md | |
labels: | | |
automated issue |