-
Notifications
You must be signed in to change notification settings - Fork 51
54 lines (52 loc) · 1.62 KB
/
runtime-release-issue.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
name: Create runtime release ticket
on:
workflow_dispatch:
inputs:
from:
description: "Previous runtime version (example: 100)"
required: true
to:
description: "Next runtime version (example: 200)"
required: true
client:
description: "Last client release version"
required: true
jobs:
setup-scripts:
runs-on: bare-metal
steps:
- uses: actions/checkout@v3
- name: Upload tools
uses: actions/upload-artifact@v3
with:
name: original-tools
path: tools
create_runtime_ticket:
needs: ["setup-scripts"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Download Original Tools
uses: actions/download-artifact@v3
with:
name: original-tools
path: original-tools
- name: Generate runtime release issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: original-tools
run: |
npm i
npm run --silent print-runtime-release-issue -- --from ${{ github.event.inputs.from }} --to ${{ github.event.inputs.to }} --client ${{ github.event.inputs.client }} | tee ../runtime-release-issue.md
- name: Create version bump issue
uses: peter-evans/create-issue-from-file@v3
with:
title: runtime-${{ github.event.inputs.to }} release
content-filepath: ./runtime-release-issue.md
labels: |
automated issue