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()