-
Notifications
You must be signed in to change notification settings - Fork 201
54 lines (47 loc) · 1.56 KB
/
start-beta.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: Start new Beta release
on:
workflow_dispatch:
inputs:
mergeBranch:
description: 'mergeBranch (optional, default="main"): the branch to merge from, useful to perform quick fixes outside of main.'
default: "main"
required: false
overrideNextGa:
description: "overrideNextGa (optional): set this param if you want to override the nextGa version that is fetched from jira versions, and use a different one."
required: false
schedule:
# Each Monday at 5 AM UTC
- cron: "0 5 * * 1"
permissions:
contents: write # To create the new branch and push it
jobs:
startRelease:
name: Start new Beta release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup git
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- uses: actions/setup-node@v4
with:
node-version: 20.16.0
cache: "npm"
- name: Install [email protected]
run: |
npm install -g [email protected]
- name: Install Dependencies
run: |
npm -v
npm ci
- name: Start Release
env:
GH_TOKEN: ${{ github.token }}
run: |
node scripts/release.js beta \
--merge-branch="${{ github.event.inputs.mergeBranch || 'main' }}" \
--next-ga="${{ github.event.inputs.overrideNextGa }}" \
--submitter="${{ github.actor }}"