Fix HCP workflow expression evaluation and add test option (#12759) (#12833)

Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
This commit is contained in:
Vault Automation 2026-03-09 11:49:32 -04:00 committed by GitHub
parent ef97ba7518
commit a2978a63f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -394,7 +394,7 @@ jobs:
hcp-image:
if: |
needs.setup.outputs.is-ent-branch == 'true' &&
needs.setup.outputs.is-ent-branch == 'true' && (
needs.setup.outputs.workflow-trigger == 'schedule' ||
( needs.setup.outputs.workflow-trigger == 'pull_request' &&
(
@ -402,13 +402,14 @@ jobs:
contains(fromJSON(needs.setup.outputs.labels), 'hcp/test')
)
)
)
needs:
- setup
- artifacts-ent
uses: ./.github/workflows/build-hcp-image.yml
with:
pull-request: ${{ needs.setup.outputs.workflow-trigger == 'pull_request' && github.event.pull_request.number || null }}
branch: ${{ needs.setup.outputs.workflow-trigger == 'schedule' && 'main' || null }}
pull-request: ${{ needs.setup.outputs.workflow-trigger == 'pull_request' && github.event.pull_request && github.event.pull_request.number || '' }}
branch: ${{ needs.setup.outputs.workflow-trigger == 'schedule' && 'main' || '' }}
create-aws-image: true
create-azure-image: false
hcp-environment: int