-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathregister-workflows-schemas.yaml
More file actions
54 lines (48 loc) · 1.9 KB
/
register-workflows-schemas.yaml
File metadata and controls
54 lines (48 loc) · 1.9 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
name: register-workflows-schemas
on:
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/workflows/register-workflows-schemas.yaml"
- "workflows/chip-*.json"
- "workflows/**/*.proto"
pull_request:
paths:
- ".github/workflows/register-workflows-schemas.yaml"
- "workflows/chip-*.json"
- "workflows/**/*.proto"
jobs:
register-schemas:
runs-on: ubuntu-latest
environment: publish
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
config:
- { name: cre, file: chip-cre.json }
- { name: platform, file: chip-platform.json }
steps:
- uses: actions/checkout@v5
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
mask-aws-account-id: true
role-to-assume: ${{ secrets.AWS_IAM_ROLE_PUBLISH_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Register Workflows Schemas for ${{ matrix.config.name }} domain
uses: smartcontractkit/.github/actions/chip-schema-registration@b1bec0ae729606681897cbf7fad5d7c1d572173e # v1.1.0
with:
aws-account-id: ${{ secrets.AWS_ACCOUNT_ID_ROOT }}
aws-region: us-west-2
chip-schema-dir: "workflows"
chip-config-file-path: "workflows/${{ matrix.config.file }}"
chip-config-host: ${{ github.ref_name == 'main' && secrets.chip_config_host_prod || secrets.chip_config_host_staging }}
chip-config-user: ${{ secrets.chip_config_user }}
chip-config-password: ${{ github.ref_name == 'main' && secrets.chip_config_password_prod || secrets.chip_config_password_staging }}
ts-ouath-client-id: ${{ secrets.chip_config_ts_oauth_client_id }}
ts-ouath-secret: ${{ secrets.chip_config_ts_oauth_secret }}