-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (64 loc) · 1.66 KB
/
triggerPublishing.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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Publish Extension
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: write
jobs:
isPatch:
name: Check if label is patch
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'patch')
runs-on: ubuntu-latest
steps:
- name: Job Check Report
run: echo Found a patch label
isMinor:
name: Check if label is minor
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'minor')
runs-on: ubuntu-latest
steps:
- name: Job Check Report
run: echo Found a minor label
isMajor:
name: Check if label is major
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'major')
runs-on: ubuntu-latest
steps:
- name: Job Check Report
run: echo Found a major label
update-patch:
name: Performs patch update
needs: isPatch
uses: ./.github/workflows/publish.yml
with:
update-type: patch
secrets:
WIN_PAT: ${{ secrets.WIN_PAT_1 }}
PAT: ${{ secrets.PAT_VSC_MARKETPLACE }}
update-minor:
name: Performs patch update
needs: isMinor
uses: ./.github/workflows/publish.yml
with:
update-type: minor
secrets:
WIN_PAT: ${{ secrets.WIN_PAT_1 }}
PAT: ${{ secrets.PAT_VSC_MARKETPLACE }}
update-major:
name: Performs major update
needs: isMajor
uses: ./.github/workflows/publish.yml
with:
update-type: major
secrets:
WIN_PAT: ${{ secrets.WIN_PAT_1 }}
PAT: ${{ secrets.PAT_VSC_MARKETPLACE }}