Skip to content

Commit

Permalink
Allow skipping tests on CD for emergency deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Sep 18, 2024
1 parent e467006 commit 3513192
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
type: string
description: Package version
required: false
skip-tests:
type: boolean
description: Skip tests
required: false
default: false
deploy:
type: boolean
description: Deploy package
Expand All @@ -27,6 +32,7 @@ jobs:
main:
uses: Tyrrrz/.github/.github/workflows/nuget.yml@master
with:
skip-tests: ${{ inputs.skip-tests }}
deploy: ${{ inputs.deploy || github.ref_type == 'tag' }}
package-version: ${{ inputs.package-version || (github.ref_type == 'tag' && github.ref_name) || format('0.0.0-ci-{0}', github.sha) }}
dotnet-version: 8.0.x
Expand Down

0 comments on commit 3513192

Please sign in to comment.