Skip to content

Commit 6b31ca2

Browse files
committed
ci: Use boolean input
1 parent 067e1dc commit 6b31ca2

25 files changed

Lines changed: 75 additions & 50 deletions

.github/workflows/build_airflow.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1516
push:
@@ -45,4 +46,4 @@ jobs:
4546
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4647
registry-namespace: sdp
4748
# Default to true if not set/empty (if not triggered by workflow_dispatch)
48-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
49+
publish: inputs.publish || true

.github/workflows/build_druid.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1516
push:
@@ -47,4 +48,4 @@ jobs:
4748
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4849
registry-namespace: sdp
4950
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
51+
publish: inputs.publish || true

.github/workflows/build_hadoop.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1516
push:
@@ -47,4 +48,4 @@ jobs:
4748
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4849
registry-namespace: sdp
4950
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
51+
publish: inputs.publish || true

.github/workflows/build_hbase.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1516
push:
@@ -48,4 +49,4 @@ jobs:
4849
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4950
registry-namespace: sdp
5051
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
52+
publish: inputs.publish || true

.github/workflows/build_hive.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1516
push:
@@ -48,5 +49,5 @@ jobs:
4849
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4950
registry-namespace: sdp
5051
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
52+
publish: inputs.publish || true
5253
runners: ubicloud

.github/workflows/build_java-base.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 0 1/2 * * # https://crontab.guru/#0_0_1/2_*_*
1516
push:
@@ -43,4 +44,4 @@ jobs:
4344
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4445
registry-namespace: sdp
4546
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
47+
publish: inputs.publish || true

.github/workflows/build_java-devel.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 1 1/2 * * # https://crontab.guru/#0_1_1/2_*_*
1516
push:
@@ -43,4 +44,4 @@ jobs:
4344
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4445
registry-namespace: sdp
4546
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
47+
publish: inputs.publish || true

.github/workflows/build_kafka-testing-tools.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 2 1/2 * * # https://crontab.guru/#0_2_1/2_*_*
1516
push:
@@ -47,4 +48,4 @@ jobs:
4748
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4849
registry-namespace: sdp
4950
# Default to true if not set/empty (if not triggered by workflow_dispatch)
50-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
51+
publish: inputs.publish || true

.github/workflows/build_kafka.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 0 2/2 * * # https://crontab.guru/#0_0_2/2_*_*
1516
push:
@@ -48,4 +49,4 @@ jobs:
4849
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4950
registry-namespace: sdp
5051
# Default to true if not set/empty (if not triggered by workflow_dispatch)
51-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
52+
publish: inputs.publish || true

.github/workflows/build_krb5.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
inputs:
99
publish:
1010
description: Publish and sign images
11+
type: boolean
1112
required: true
12-
default: "true"
13+
default: true
1314
schedule:
1415
- cron: 0 2 2/2 * * # https://crontab.guru/#0_2_2/2_*_*
1516
push:
@@ -43,4 +44,4 @@ jobs:
4344
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
4445
registry-namespace: sdp
4546
# Default to true if not set/empty (if not triggered by workflow_dispatch)
46-
publish: ${{ inputs.publish == '' || inputs.publish == 'true' }}
47+
publish: inputs.publish || true

0 commit comments

Comments
 (0)