-
Notifications
You must be signed in to change notification settings - Fork 227
69 lines (62 loc) · 1.8 KB
/
promote-release.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
68
69
name: Promote and Release
on:
workflow_call:
inputs:
version:
description: version to promote to latest
type: string
required: true
isStableRelease:
type: boolean
description: Is this a stable/prod release?
required: true
default: false
channel:
type: string
description: Release channel for prereleases
required: false
workflow_dispatch:
inputs:
version:
description: version to promote to latest
type: string
required: true
isStableRelease:
type: boolean
description: Is this a stable/prod release?
required: true
default: false
channel:
type: string
description: Release channel for prereleases
required: false
jobs:
promote:
uses: ./.github/workflows/promote.yml
with:
version: ${{ inputs.version }}
isStableRelease: ${{ fromJSON(inputs.isStableRelease) }}
channel: ${{ inputs.channel }}
secrets: inherit
## POST release jobs
invalidate-cdn-cache:
name: Invalidate CDN cache
needs: [ promote ]
uses: ./.github/workflows/cache-invalidation.yml
secrets: inherit
release-homebrew:
needs: [ invalidate-cdn-cache ]
if: fromJSON(inputs.isStableRelease)
uses: ./.github/workflows/release-homebrew.yml
secrets: inherit
change-management:
needs: [ promote ]
if: fromJSON(inputs.isStableRelease)
uses: ./.github/workflows/tps-record-release.yml
secrets: inherit
with:
isStableCandidate: ${{ fromJSON(inputs.isStableRelease) }}
create-fig-autocomplete-pr:
if: fromJSON(inputs.isStableRelease)
## Calls publish-to-fig-autocomplete workflow during post release jobs
uses: ./.github/workflows/publish-to-fig-autocomplete.yml