generated from WalletConnect/rust-http-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (54 loc) · 1.56 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
57
58
name: ⚙️ Validate
run-name: "Validate: ${{ github.sha }}${{ (!inputs.check-infra && !inputs.check-app) && '👀 validate nothing' || ''}}${{ inputs.check-infra && ' ✓ infra' || '' }}${{ inputs.check-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
checks: write
id-token: write
jobs:
ci:
name: CI
uses: WalletConnect/ci_workflows/.github/workflows/[email protected]
secrets: inherit
with:
rust-toolchain-formatting: nightly
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
validate-prod:
name: Validate - Prod
if: ${{ inputs.check-prod }}
uses: ./.github/workflows/sub-validate.yml
secrets: inherit
with:
stage: prod
stage-url: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com