From c45d0fabe9df9d1cafc8611bc8a19740d9a6c0e0 Mon Sep 17 00:00:00 2001 From: John Haynes Date: Thu, 18 Apr 2024 18:01:27 -0600 Subject: [PATCH] Optionally skip tests on workflow_dispatch --- .github/workflows/linux-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-push.yml b/.github/workflows/linux-push.yml index 3fdcf278e..f30e7fc7f 100644 --- a/.github/workflows/linux-push.yml +++ b/.github/workflows/linux-push.yml @@ -7,8 +7,8 @@ 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 @@ -16,7 +16,7 @@ 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