Skip to content

Commit

Permalink
Optionally skip tests on workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
tundranerd committed Apr 19, 2024
1 parent 6969cf7 commit 1747162
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
inputs:
runTests:
description: "Run tests?"
type: boolean
required: false
default: false
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
call_workflow:
uses: febiosoftware/febio-workflows/.github/workflows/linux-reusable-push.yml@develop
with:
runTests: ${{ inputs.runTests == 'true' || contains(fromJSON('["develop", "develop"]'), github.ref_name) }}
runTests: ${{ (github.event_name == 'workflow_dispatch' && inputs.runTests) || (github.event_name == 'push' && contains(fromJSON('["develop"]'), github.ref_name)) }}
package-name: febio4
package-sdk: true
aws-ami-id: ami-0590ebdb5afffb782
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
call_workflow:
uses: febiosoftware/febio-workflows/.github/workflows/macos-reusable-push.yml@develop
with:
runTests: ${{ inputs.runTests == 'true' || contains(fromJSON('["develop", "develop"]'), github.ref_name) }}
runTests: ${{ (github.event_name == 'workflow_dispatch' && inputs.runTests) || (github.event_name == 'push' && contains(fromJSON('["develop"]'), github.ref_name)) }}
package-name: febio4
package-sdk: true
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/windows-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
call_workflow:
uses: febiosoftware/febio-workflows/.github/workflows/windows-reusable-push.yml@develop
with:
runTests: ${{ inputs.runTests == 'true' || contains(fromJSON('["develop", "develop"]'), github.ref_name) }}
runTests: ${{ (github.event_name == 'workflow_dispatch' && inputs.runTests) || (github.event_name == 'push' && contains(fromJSON('["develop"]'), github.ref_name)) }}
package-name: febio4
package-sdk: true
aws-ami-id: ami-0b18c665dbe9efa75
Expand Down

0 comments on commit 1747162

Please sign in to comment.