-
Notifications
You must be signed in to change notification settings - Fork 3.7k
33 lines (28 loc) · 1.26 KB
/
lockDeploys.yml
File metadata and controls
33 lines (28 loc) · 1.26 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
name: Lock staging deploys during QA
on:
issues:
types: [labeled]
jobs:
lockStagingDeploys:
if: ${{ github.event.label.name == '🔐 LockCashDeploys 🔐' && contains(github.event.issue.labels.*.name, 'StagingDeployCash') && github.actor != 'OSBotify' }}
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout
# v6
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Wait for staging deploys to finish
uses: ./.github/actions/javascript/awaitStagingDeploys
with:
GITHUB_TOKEN: ${{ github.token }}
- name: Comment in StagingDeployCash to give Applause the 🟢 to begin QA
run: |
gh issue comment \
"$(gh issue list --label StagingDeployCash --json number --jq '.[0].number')" \
--body ":rocket: All staging deploys are complete, @Expensify/applauseleads please begin QA on version https://github.com/Expensify/App/releases/tag/$(< package.json jq -r .version) :rocket:"
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Announce failed workflow
if: ${{ failure() }}
uses: ./.github/actions/composite/announceFailedWorkflowInSlack
with:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}