Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deployment board update step #250

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 34 additions & 11 deletions .github/workflows/im-reusable-finish-deployment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ on:
required: false
type: string
default: 'america/denver'
deployment-board-number:
description: 'The number of the deployment board that should be updated. Defaults to 1.'
required: false
type: number
default: 1
deployable-type:
description: 'Identifier if there are multiple deployables in the repo, like MFE, DB, API. Defaults to an empty string for single deployables.'
required: false
Expand Down Expand Up @@ -133,19 +138,37 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

# 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]
- name: Update deployment board
if: always()
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
github-token: ${{ secrets.GITHUB_TOKEN }}
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 }}
board-number: ${{ inputs.deployment-board-number }}
ref: ${{ inputs.release-tag }}
ref-type: 'tag'
deployable-type: ${{ inputs.deployable-type }}
deploy-label: ${{ inputs.deployable-label }}
deploy-status: ${{ steps.conclusion.outputs.workflow_conclusion }}
enable-deployment-slot-tracking: ${{ inputs.enable-deployment-slot-tracking }}
slot-swapped-with-production-slot: ${{ inputs.slot-swapped-with-production-slot }}
target-slot: ${{ inputs.target-slot }}
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 }}

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