Skip to content

Commit

Permalink
Conditionally skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tompage1994 authored Jul 15, 2024
1 parent 1ce7465 commit 40dc909
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip Tests - Only to be used '
required: false
default: false
version:
description: "The tagged version to run the release of"
required: true

jobs:
ci_standalone:
Expand All @@ -21,9 +30,9 @@ jobs:
uses: "./.github/workflows/ci_standalone_versioned.yml"
with:
awx_version: ${{ matrix.awx_version }}
if: ${{ !skip_tests }}
release:
needs:
- ci_standalone
needs: ${{ !skip_tests && [ci_standalone] || [] }}
uses: "redhat-cop/ansible_collections_tooling/.github/workflows/release_pipeline_dual.yml@main"
with:
# Galaxy Publish
Expand Down

0 comments on commit 40dc909

Please sign in to comment.