12
12
outputs :
13
13
isValid : ${{ fromJSON(steps.isDeployer.outputs.IS_DEPLOYER) && !fromJSON(steps.checkDeployBlockers.outputs.HAS_DEPLOY_BLOCKERS) }}
14
14
steps :
15
+ - uses : Expensify/App/.github/actions/composite/setupGitForOSBotify@main
16
+ id : setupGitForOSBotify
17
+ with :
18
+ GPG_PASSPHRASE : ${{ secrets.LARGE_SECRET_PASSPHRASE }}
19
+ OS_BOTIFY_APP_ID : ${{ secrets.OS_BOTIFY_APP_ID }}
20
+ OS_BOTIFY_PRIVATE_KEY : ${{ secrets.OS_BOTIFY_PRIVATE_KEY }}
21
+
15
22
- name : Validate actor is deployer
16
23
id : isDeployer
17
24
run : |
@@ -21,13 +28,13 @@ jobs:
21
28
echo "IS_DEPLOYER=false" >> "$GITHUB_OUTPUT"
22
29
fi
23
30
env :
24
- GITHUB_TOKEN : ${{ secrets.OS_BOTIFY_TOKEN }}
31
+ GITHUB_TOKEN : ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
25
32
26
33
- name : Reopen and comment on issue (not a team member)
27
34
if : ${{ !fromJSON(steps.isDeployer.outputs.IS_DEPLOYER) }}
28
35
uses : Expensify/App/.github/actions/javascript/reopenIssueWithComment@main
29
36
with :
30
- GITHUB_TOKEN : ${{ secrets.OS_BOTIFY_TOKEN }}
37
+ GITHUB_TOKEN : ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
31
38
ISSUE_NUMBER : ${{ github.event.issue.number }}
32
39
COMMENT : |
33
40
Sorry, only members of @Expensify/Mobile-Deployers can close deploy checklists.
@@ -38,14 +45,14 @@ jobs:
38
45
id : checkDeployBlockers
39
46
uses : Expensify/App/.github/actions/javascript/checkDeployBlockers@main
40
47
with :
41
- GITHUB_TOKEN : ${{ secrets.OS_BOTIFY_TOKEN }}
48
+ GITHUB_TOKEN : ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
42
49
ISSUE_NUMBER : ${{ github.event.issue.number }}
43
50
44
51
- name : Reopen and comment on issue (has blockers)
45
52
if : ${{ fromJSON(steps.isDeployer.outputs.IS_DEPLOYER) && fromJSON(steps.checkDeployBlockers.outputs.HAS_DEPLOY_BLOCKERS || 'false') }}
46
53
uses : Expensify/App/.github/actions/javascript/reopenIssueWithComment@main
47
54
with :
48
- GITHUB_TOKEN : ${{ secrets.OS_BOTIFY_TOKEN }}
55
+ GITHUB_TOKEN : ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
49
56
ISSUE_NUMBER : ${{ github.event.issue.number }}
50
57
COMMENT : |
51
58
This issue either has unchecked items or has not yet been marked with the `:shipit:` emoji of approval.
70
77
token : ${{ secrets.OS_BOTIFY_TOKEN }}
71
78
72
79
- name : Setup Git for OSBotify
80
+ id : setupGitForOSBotify
73
81
uses : Expensify/App/.github/actions/composite/setupGitForOSBotify@main
74
82
with :
75
83
GPG_PASSPHRASE : ${{ secrets.LARGE_SECRET_PASSPHRASE }}
84
+ OS_BOTIFY_APP_ID : ${{ secrets.OS_BOTIFY_APP_ID }}
85
+ OS_BOTIFY_PRIVATE_KEY : ${{ secrets.OS_BOTIFY_PRIVATE_KEY }}
76
86
77
87
- name : Update production branch
78
88
run : |
@@ -112,6 +122,8 @@ jobs:
112
122
uses : Expensify/App/.github/actions/composite/setupGitForOSBotify@main
113
123
with :
114
124
GPG_PASSPHRASE : ${{ secrets.LARGE_SECRET_PASSPHRASE }}
125
+ OS_BOTIFY_APP_ID : ${{ secrets.OS_BOTIFY_APP_ID }}
126
+ OS_BOTIFY_PRIVATE_KEY : ${{ secrets.OS_BOTIFY_PRIVATE_KEY }}
115
127
116
128
- name : Update staging branch to trigger staging deploy
117
129
run : |
0 commit comments