Skip to content

Commit 2755680

Browse files
chore: add force deployment option to bypass changeset guard (#7727)
1 parent a107d39 commit 2755680

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy_production.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches:
66
- main
77
workflow_dispatch:
8+
inputs:
9+
force_deploy:
10+
description: 'Force deployment (bypass changeset guard)'
11+
required: false
12+
default: false
13+
type: boolean
814

915
permissions:
1016
contents: read
@@ -17,8 +23,8 @@ jobs:
1723
runs-on: ubuntu-latest
1824
outputs:
1925
# To avoid deploying documentation for unrelease changes, we check the number of changeset files.
20-
# If it's 0, we deploy.
21-
should_deploy: ${{ steps.changeset-count.outputs.change_count == 0 && steps.has-pages.outputs.pages == 1 }}
26+
# If it's 0, we deploy. Can be bypassed with force_deploy input.
27+
should_deploy: ${{ inputs.force_deploy == true || (steps.changeset-count.outputs.change_count == 0 && steps.has-pages.outputs.pages == 1) }}
2228
steps:
2329
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2430

0 commit comments

Comments
 (0)