Skip to content

Commit 210e56c

Browse files
ci(cla): combine matrix jobs into single job (#718)
1 parent 196024c commit 210e56c

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/__cla-gist-replicator.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,30 @@ jobs:
2222
environment:
2323
name: cla-gist
2424
url: https://gist.github.com/${{ vars.CLA_GIST_ID }}
25-
strategy: # the action doesn't currently support multiple files
26-
fail-fast: true # false to run all, true to fail entire job if any fail
27-
max-parallel: 1 # let's update files one by one to avoid complications
28-
matrix:
29-
include:
30-
- file_path: 'legal/cla/CLA'
31-
- file_path: 'legal/cla/CLA-entity'
32-
- file_path: 'legal/cla/metadata'
3325
steps:
3426
- name: Checkout repository
3527
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3628

37-
- name: Deploy Gist
29+
- name: Deploy CLA (indivdual)
3830
uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4
3931
with:
4032
token: ${{ secrets.GH_BOT_TOKEN }}
4133
gist_id: ${{ vars.CLA_GIST_ID }}
42-
file_path: ${{ matrix.file_path }}
34+
file_path: legal/cla/CLA
35+
file_type: text
36+
37+
- name: Deploy CLA (entity)
38+
uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4
39+
with:
40+
token: ${{ secrets.GH_BOT_TOKEN }}
41+
gist_id: ${{ vars.CLA_GIST_ID }}
42+
file_path: legal/cla/CLA-entity
43+
file_type: text
44+
45+
- name: Deploy CLA (metadata)
46+
uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4
47+
with:
48+
token: ${{ secrets.GH_BOT_TOKEN }}
49+
gist_id: ${{ vars.CLA_GIST_ID }}
50+
file_path: legal/cla/metadata
4351
file_type: text

0 commit comments

Comments
 (0)