Skip to content

Commit c45d0fa

Browse files
committed
Optionally skip tests on workflow_dispatch
1 parent 6969cf7 commit c45d0fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/linux-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ on:
77
inputs:
88
runTests:
99
description: "Run tests?"
10+
type: boolean
1011
required: false
11-
default: false
1212
permissions:
1313
id-token: write # This is required for requesting the JWT
1414
contents: read # This is required for actions/checkout
1515
jobs:
1616
call_workflow:
1717
uses: febiosoftware/febio-workflows/.github/workflows/linux-reusable-push.yml@develop
1818
with:
19-
runTests: ${{ inputs.runTests == 'true' || contains(fromJSON('["develop", "develop"]'), github.ref_name) }}
19+
runTests: ${{ (github.event_name == 'workflow_dispatch' && inputs.runTests) || (github.event_name == 'push' && contains(fromJSON('["develop"]'), github.ref_name)) }}
2020
package-name: febio4
2121
package-sdk: true
2222
aws-ami-id: ami-0590ebdb5afffb782

0 commit comments

Comments
 (0)