From e288b90021a75ed5cecdbffc4a1cea8efb237c7c Mon Sep 17 00:00:00 2001 From: Roy Wong Date: Wed, 7 Feb 2024 08:30:07 -0700 Subject: [PATCH] Clean-up set instance syntax --- .github/workflows/im-reusable-finish-deployment-workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/im-reusable-finish-deployment-workflow.yml b/.github/workflows/im-reusable-finish-deployment-workflow.yml index d3672ef1..7d30472c 100644 --- a/.github/workflows/im-reusable-finish-deployment-workflow.yml +++ b/.github/workflows/im-reusable-finish-deployment-workflow.yml @@ -159,7 +159,7 @@ jobs: # Only run this step if Tech Hub metadata.name value # and a metadata.instance value are provided - name: Create GitHub Deployment - if: ${{ inputs.entity != null && inputs.instance != null }} + if: ${{ inputs.entity != null && (inputs.instance != null || inputs.target-slot != null) }} uses: im-open/create-github-deployment@v1.0 with: workflow-actor: ${{ github.actor }} # This will add the user who kicked off the workflow to the deployment payload @@ -169,7 +169,7 @@ jobs: deployment-status: ${{ steps.conclusion.outputs.workflow_conclusion }} deployment-description: 'Deployment to the ${{ inputs.deployment-environment }} environment of ${{ inputs.release-tag }}' entity: ${{ inputs.entity }} - instance: ${{ inputs.instance || inputs.target-slot }} + instance: ${{ inputs.instance != null ? inputs.instance : inputs.target-slot }} - name: Configure facts for team's notification channel if: always()