Skip to content

Commit

Permalink
Restore create-github-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hpractv committed Feb 7, 2024
1 parent 6ad3e73 commit 94b2a54
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/im-reusable-finish-deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,20 @@ jobs:
source-slot: ${{ inputs.source-slot }}
timezone: ${{ inputs.timezone }}

# Only run this step if Tech Hub metadata.name value is passed in
# - name: Create GitHub Deployment
# if: ${{ inputs.entity != 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
# token: ${{ secrets.GITHUB_TOKEN }} # Special per-job token generated by GH for interacting with the repo
# environment: ${{ inputs.deployment-environment }}
# release-ref: ${{ inputs.release-tag }}
# 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 }}
# 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 }}
uses: im-open/[email protected]
with:
workflow-actor: ${{ github.actor }} # This will add the user who kicked off the workflow to the deployment payload
token: ${{ secrets.GITHUB_TOKEN }} # Special per-job token generated by GH for interacting with the repo
environment: ${{ inputs.deployment-environment }}
release-ref: ${{ inputs.release-tag }}
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 }}

- name: Configure facts for team's notification channel
if: always()
Expand Down

0 comments on commit 94b2a54

Please sign in to comment.