Repository navigation
120 lines (115 loc) · 3.57 KB
/
Copy pathpostDeployComments.yml
File metadata and controls
120 lines (115 loc) · 3.57 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Post Deploy Comments
on:
workflow_call:
inputs:
version:
description: The version that was deployed
required: true
type: string
env:
description: The environment that was deployed (staging or prod)
required: true
type: string
android:
description: Android HybridApp deploy status
required: true
type: string
ios:
description: iOS HybridApp deploy status
required: true
type: string
web:
description: Web deploy status
required: true
type: string
android_sentry_url:
description: URL to Sentry size analysis for Android
required: false
type: string
ios_sentry_url:
description: URL to Sentry size analysis for iOS
required: false
type: string
secrets:
OS_BOTIFY_TOKEN:
description: Token for accessing Mobile-Expensify repository
required: true
workflow_dispatch:
inputs:
version:
description: The version that was deployed
required: true
type: string
env:
description: The environment that was deployed (staging or prod)
required: true
type: choice
options:
- staging
- production
android:
description: Android HybridApp deploy status
required: true
type: choice
options:
- success
- failure
- cancelled
- skipped
ios:
description: iOS HybridApp deploy status
required: true
type: choice
options:
- success
- failure
- cancelled
- skipped
web:
description: Web deploy status
required: true
type: choice
options:
- success
- failure
- cancelled
- skipped
date:
description: The date when this deploy occurred
required: false
type: string
note:
description: Any additional note you want to include with the deploy comment
required: false
type: string
jobs:
postDeployComments:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Checkout
uses: useblacksmith/checkout@0647fdbab2614a5eb86d2971070e325060d91056 # v1.7.0
- name: Setup Node
uses: ./.github/actions/composite/setupNode
- name: Get pull request list
id: getPullRequestList
uses: ./.github/actions/javascript/getDeployPullRequestList
with:
# Staging tags use the `-staging` suffix, production tags use the version only
TAG: ${{ inputs.version }}${{ inputs.env == 'staging' && '-staging' || '' }}
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
IS_PRODUCTION_DEPLOY: ${{ inputs.env == 'production' }}
- name: Comment on issues
uses: ./.github/actions/javascript/markPullRequestsAsDeployed
with:
PR_LIST: ${{ steps.getPullRequestList.outputs.PR_LIST }}
MOBILE_EXPENSIFY_PR_LIST: ${{ steps.getPullRequestList.outputs.MOBILE_EXPENSIFY_PR_LIST }}
IS_PRODUCTION_DEPLOY: ${{ inputs.env == 'production' }}
DEPLOY_VERSION: ${{ inputs.version }}
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }}
ANDROID: ${{ inputs.android }}
IOS: ${{ inputs.ios }}
WEB: ${{ inputs.web }}
DATE: ${{ inputs.date }}
NOTE: ${{ inputs.note }}
ANDROID_SENTRY_URL: ${{ inputs.android_sentry_url }}
IOS_SENTRY_URL: ${{ inputs.ios_sentry_url }}