Skip to content

Commit

Permalink
Clean-up set instance syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hpractv committed Feb 7, 2024
1 parent 94b2a54 commit e288b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/im-reusable-finish-deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
workflow-actor: ${{ github.actor }} # This will add the user who kicked off the workflow to the deployment payload
Expand All @@ -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()
Expand Down

0 comments on commit e288b90

Please sign in to comment.