Skip to content

Commit

Permalink
Add: ability to bypass the permission check from slack (#8985)
Browse files Browse the repository at this point in the history
* Add: ability to bypass the permission check from slack
  • Loading branch information
Fraggle authored Nov 28, 2024
1 parent 7a51f9f commit 4636d1d
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Connectors

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_connectors
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Core

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_core
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-front-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Front Edge

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_front_edge
Expand Down Expand Up @@ -34,6 +43,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Front

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_front
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-oauth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Oauth

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_oauth
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-prodbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Prodbox

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_prodbox
Expand Down Expand Up @@ -36,6 +45,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/deploy-viz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Deploy Viz

on:
workflow_dispatch:
inputs:
check_deployment_blocked:
description: "Check #deployment locks or force deploy"
required: true
default: "check"
type: choice
options:
- "check"
- "force (dangerous)"

concurrency:
group: deploy_viz
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
slack_token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Slack Check Deployment Blocked
if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }}
id: check_deployment_blocked
uses: ./.github/actions/slack-check-deployment-blocked
with:
Expand Down
2 changes: 1 addition & 1 deletion connectors/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4636d1d

Please sign in to comment.