Skip to content

Commit

Permalink
Rework as choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraggle committed Nov 28, 2024
1 parent 251444b commit 4d43f6f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deploy-front-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: Deploy Front Edge
on:
workflow_dispatch:
inputs:
bypass_check_deployment_blocked:
description: "Bypass deployment block check"
check_deployment_blocked:
description: "Check if deployment should be blocked"
required: true
default: false
type: boolean
default: "check"
type: choice
options:
- "check"
- "ignore"

concurrency:
group: deploy_front_edge
Expand All @@ -25,11 +28,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Log inputs
run: |
echo "Bypass deployment block check: ${{ github.event.inputs.bypass_check_deployment_blocked }}"
echo "Inputs: ${{ github.event.inputs }}"
- name: Get short sha
id: short_sha
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
Expand All @@ -45,7 +43,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ !github.event.inputs.bypass_check_deployment_blocked }}
if: ${{ github.event.inputs.check_deployment_blocked != 'ignore' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down

0 comments on commit 4d43f6f

Please sign in to comment.