Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/shared-build-deploy-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ jobs:
id: load-environment
uses: ./github-actions-shared-build-deploy-container/load-environment

- name: Outputs if this is a workflow_dispatch for staging and production (manual deploy)
- name: Outputs if this is a workflow_dispatch for production (manual deploy)
shell: bash
id: check-manual-deploy
run: |
IS_MANUAL_DEPLOY_RESTRICTED="N"
if [[ "${{ steps.load-environment.outputs.environment }}" == "production" || "${{ steps.load-environment.outputs.environment }}" == "staging" ]]; then
if [[ "${{ steps.load-environment.outputs.environment }}" == "production" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Event workflow_dispatch detected for environment ${{ steps.load-environment.outputs.environment }}."
IS_MANUAL_DEPLOY_RESTRICTED="Y"
fi
fi
echo "isManualDeployRestricted=$IS_MANUAL_DEPLOY_RESTRICTED" >> $GITHUB_OUTPUT

- name: Waiting for Approval when deploying to stage or production
- name: Waiting for Approval when deploying to production
uses: ./github-actions-shared-build-deploy-container/manual-approval
if: ${{ steps.check-manual-deploy.outputs.isManualDeployRestricted == 'Y' }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/shared-deploy-container-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ jobs:
echo "environment=$DETECTED_ENVIRONMENT" >> $GITHUB_OUTPUT
echo "runnerName=$RUNNER_NAME" >> $GITHUB_OUTPUT

- name: Outputs if this is a workflow_dispatch for staging and production (manual deploy)
- name: Outputs if this is a workflow_dispatch for production (manual deploy)
shell: bash
id: check-manual-deploy
run: |
IS_MANUAL_DEPLOY_RESTRICTED="N"
if [[ "${{ steps.load-environment.outputs.environment }}" == "production" || "${{ steps.load-environment.outputs.environment }}" == "staging" ]]; then
if [[ "${{ steps.load-environment.outputs.environment }}" == "production" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "Event workflow_dispatch detected for environment ${{ steps.load-environment.outputs.environment }}."
IS_MANUAL_DEPLOY_RESTRICTED="Y"
fi
fi
echo "isManualDeployRestricted=$IS_MANUAL_DEPLOY_RESTRICTED" >> $GITHUB_OUTPUT

- name: Waiting for Approval when deploying to stage or production
- name: Waiting for Approval when deploying to production
uses: ./github-actions-shared-deploy-image/manual-approval
if: ${{ steps.check-manual-deploy.outputs.isManualDeployRestricted == 'Y' }}
with:
Expand Down
Loading