Skip to content

Commit d5b9ec1

Browse files
committed
Update input types and conditions for full pipeline execution in CI workflow
1 parent c03bc5f commit d5b9ec1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111
required: false
1212
default: false
1313
debug_deployment:
14-
type: string
14+
type: boolean
1515
description: 'Run the pipeline with debug deployment enabled'
1616
required: false
17-
default: 'false'
17+
default: false
1818
full_pipeline:
1919
type: boolean
2020
description: 'Run the full pipeline to production'
@@ -246,7 +246,7 @@ jobs:
246246
outputs:
247247
image_tag: ${{ github.run_number }} # output the image tag to be used in the build-and-publish-docker-image job
248248
needs: [build, test] # depend on the build job to get the published app artifact
249-
if: ${{ github.event.inputs.full_pipeline && (github.event_name == 'workflow_dispatch' || github.event_name == 'push' || (github.event_name == 'pull_request_target' && github.base_ref == 'main' && github.head_ref == 'develop')) }}
249+
if: ${{ github.event.inputs.full_pipeline && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request_target' && github.base_ref == 'main' && github.head_ref == 'develop')) }}
250250
permissions:
251251
packages: write
252252
id-token: write

0 commit comments

Comments
 (0)