-
Notifications
You must be signed in to change notification settings - Fork 3
/
dispatch_validate.yml
56 lines (52 loc) · 1.5 KB
/
dispatch_validate.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
name: ⚙️ Validate
run-name: "Validate: ${{ github.sha }}${{ (!inputs.infra && !inputs.app) && '👀 validate nothing' || ''}}${{ inputs.infra && ' ✓ infra' || '' }}${{ inputs.app && ' ✓ app' || '' }}"
on:
workflow_dispatch:
inputs:
check-infra:
description: "Validate Infra"
default: true
required: true
type: boolean
check-app:
description: "Validate App"
default: true
required: true
type: boolean
check-staging:
description: "Validate Staging"
default: false
required: true
type: boolean
check-prod:
description: "Validate Prod"
default: false
required: true
type: boolean
permissions:
contents: read
id-token: write
jobs:
ci:
name: CI
uses: WalletConnect/ci_workflows/.github/workflows/ci.yml@main
secrets: inherit
with:
check-infra: ${{ inputs.check-infra }}
check-app: ${{ inputs.check-app }}
validate-staging:
name: Validate - Staging
if: ${{ inputs.check-staging }}
uses: ./.github/workflows/sub-validate.yml
secrets: inherit
with:
stage: staging
stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health
validate-prod:
name: Validate - Prod
if: ${{ inputs.check-prod }}
uses: ./.github/workflows/sub-validate.yml
secrets: inherit
with:
stage: prod
stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health