Skip to content

Commit

Permalink
Allow manual deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeylau committed Feb 20, 2024
1 parent e9b778f commit 2d9711d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
- main
- npe2
workflow_dispatch:
inputs:
force_deploy:
description: 'Force deployment even if tests fail'
required: true
type: boolean

jobs:
test:
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
# github secrets (see readme for details)
needs: [test]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
if: contains(github.ref, 'tags') || ${{ inputs.force_deploy }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down

0 comments on commit 2d9711d

Please sign in to comment.