-
Notifications
You must be signed in to change notification settings - Fork 52
78 lines (74 loc) · 2 KB
/
run_patch.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## Canary CI/CD
name: Patch
run-name: Patch
on:
push:
branches:
- '*'
# workflow_dispatch:
# inputs:
# branch:
# description: 'branch name'
# required: false
# default: 'master'
# scripts-to-execute:
# description: 'scripts to execute'
# required: false
# type: string
# default: 'build lint type-check test'
# is-patch-version:
# description: "patch version"
# required: true
# type: boolean
# default: false
jobs:
# set_stage_variable:
# runs-on: ubuntu-latest
# outputs:
# id: stage
# value: ${{ steps.stage.outputs.stage }}
# steps:
# - name: Output stage
# id: stage
# run: |
# if [[ "${{ inputs.is-patch-version }}" == "true" ]]; then
# stage="patch"
# else
# stage="canary"
# fi
# echo $stage
# echo "stage=${stage}" >> $GITHUB_OUTPUT
get_branch_name:
runs-on: ubuntu-latest
outputs:
id: branch-name
value: ${{ steps.branch-name.outputs.name }}
steps:
- name: Output branch name
id: name
run: |
name=${GITHUB_REF#refs/heads/}
echo $name
echo "name=${name}" >> $GITHUB_OUTPUT
echo "github.ref ---->"
echo ${{ github.token }}
checkout_code:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PLAYER_GITHUB_BOT_TOKEN }}
ref: ${{ needs.branch-name.outputs.branch-name }}
# canary:
# uses: kaltura/playkit-js-common/.github/workflows/canary_player.yaml@master
# secrets: inherit
# with:
# node-version: "20.x"
# player-type: "ovp tv"
# schema-type: "playerV3Versions"
# tests-yarn-run-to-execute: ${{ inputs.scripts-to-execute }}
# yarn-upgrade-list: ""
# is-patch-version: ${{ inputs.is-patch-version }}
# stage: $STAGE_VALUE
# stage: ${{ needs.set_stage_variable.outputs.stage }}