Skip to content

Commit a6b8ee4

Browse files
authored
Merge of #1417
2 parents 3198da0 + d5599c6 commit a6b8ee4

21 files changed

+754
-10
lines changed

.github/actionlint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ self-hosted-runner:
1414
- m1mac
1515
- 4090-desktop
1616
- aws-mac1-metal
17+
18+
# Path-specific configurations
19+
paths:
20+
.github/workflows/**/*.{yml,yaml}:
21+
ignore:
22+
- SC2001 # https://www.shellcheck.net/wiki/SC2129
23+
- 'property "result" is not defined in object type.*'
24+
- '".*" section is alias node but mapping node is expected'
25+
- 'secret ".*" is required by ".*" reusable workflow.*'

.github/workflows/common-pull-request-lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- name: actionlint
2525
uses: raven-actions/actionlint@3a24062651993d40fed1019b58ac6fbdfbf276cc # v2.0.1
2626
with:
27-
flags: "-ignore SC2001"
2827
version: ${{ env.ACTIONLINT_VERSION }}
2928

3029
- name: Ensure SHA pinned actions
@@ -48,4 +47,4 @@ jobs:
4847
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
4948
with:
5049
persona: pedantic
51-
version: 1.14.2
50+
version: 1.17.0

.github/workflows/coprocessor-db-migration-docker-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
name: coprocessor-db-migration-docker-build
2+
23
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
326
pull_request:
427
push:
528
branches:
@@ -22,6 +45,9 @@ jobs:
2245
contents: 'read' # Required to checkout repository code
2346
pull-requests: 'read' # Required to read pull request information
2447
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2551
outputs:
2652
changes-coprocessor-db-migration: ${{ steps.filter.outputs.coprocessor-db-migration }}
2753
steps:

.github/workflows/coprocessor-gw-listener-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-gw-listener-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-gw-listener: ${{ steps.filter.outputs.coprocessor-gw-listener }}
2853
steps:

.github/workflows/coprocessor-host-listener-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-host-listener-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-host-listener: ${{ steps.filter.outputs.coprocessor-host-listener }}
2853
steps:

.github/workflows/coprocessor-sns-worker-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-sns-worker-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-sns-worker: ${{ steps.filter.outputs.coprocessor-sns-worker }}
2853
steps:

.github/workflows/coprocessor-tfhe-worker-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-tfhe-worker-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-tfhe-worker: ${{ steps.filter.outputs.coprocessor-tfhe-worker }}
2853
steps:

.github/workflows/coprocessor-tx-sender-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-tx-sender-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-tx-sender: ${{ steps.filter.outputs.coprocessor-tx-sender }}
2853
steps:

.github/workflows/coprocessor-zkproof-worker-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: coprocessor-zkproof-worker-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-coprocessor-zkproof-worker: ${{ steps.filter.outputs.coprocessor-zkproof-worker }}
2853
steps:

.github/workflows/gateway-contracts-docker-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: gateway-contracts-docker-build
22

33
on:
4+
workflow_call:
5+
secrets:
6+
AWS_ACCESS_KEY_S3_USER:
7+
required: true
8+
AWS_SECRET_KEY_S3_USER:
9+
required: true
10+
BLOCKCHAIN_ACTIONS_TOKEN:
11+
required: true
12+
CGR_USERNAME:
13+
required: true
14+
CGR_PASSWORD:
15+
required: true
16+
inputs:
17+
is_workflow_call:
18+
description: 'To determine if the trigger was a workflow_call or a pull request'
19+
type: boolean
20+
required: false
21+
default: true
22+
outputs:
23+
build_result:
24+
description: "Result of the build job of this workflow"
25+
value: ${{ jobs.build.result }}
426
pull_request:
527
push:
628
branches:
@@ -23,6 +45,9 @@ jobs:
2345
contents: 'read' # Required to checkout repository code
2446
pull-requests: 'read' # Required to read pull request information
2547
runs-on: ubuntu-latest
48+
if: |
49+
inputs.is_workflow_call ||
50+
(!inputs.is_workflow_call && !startsWith(github.head_ref, 'mergify/merge-queue/'))
2651
outputs:
2752
changes-gw-contracts: ${{ steps.filter.outputs.gw-contracts }}
2853
steps:

0 commit comments

Comments
 (0)