-
Notifications
You must be signed in to change notification settings - Fork 135
49 lines (47 loc) · 1.17 KB
/
workflow_trigger.yaml
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
name: workflow_trigger
on:
workflow_dispatch:
inputs:
branch:
type: choice
description: Branch
options:
- '25.lts.1+'
- '24.lts.1+'
- '23.lts.1+'
- '22.lts.1+'
- '21.lts.1+'
- '20.lts.1+'
- '19.lts.1+'
- 'rc_11'
- 'COBALT_9'
workflow:
type: choice
description: Workflow name
options:
- 'android'
- 'evergreen'
- 'linux'
- 'raspi'
nightly:
description: 'Nightly workflow.'
required: true
type: boolean
default: false
jobs:
trigger:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: kaidokert/[email protected]
with:
fetch-depth: 1
ref: ${{ github.event.branch }}
- name: Trigger Workflow
run: |
set -x
gh workflow run ${{ github.event.inputs.workflow }}_${{ github.event.inputs.branch }} --ref ${{ github.event.inputs.branch }} -f nightly=${{ github.event.inputs.nightly }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}