Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tompage1994 authored Jul 15, 2024
1 parent 7e9178f commit 993eb72
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
---
# This workflow action will run pre-commit, which will execute ansible and yaml linting
# See .pre-commit-config.yaml for what hooks are executed
name: Release

env:
skip_tests: false
tagged_version: ${{ github.ref_name }}

name: Release

on:
release:
types:
- published
inputs:
skip_tests:
description: 'Skip Tests - Only to be used if absolutely necessary'
required: false
default: false
tagged_version:
description: "The tagged version to run the release of"
required: false
default: ${{ github.ref_name }}
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip Tests - Only to be used '
description: 'Skip Tests - Only to be used if absolutely necessary'
required: false
default: false
tagged_version:
Expand All @@ -37,7 +41,7 @@ jobs:
awx_version: ${{ matrix.awx_version }}
if: ${{ !skip_tests }}
release:
needs: ${{ !skip_tests && [ci_standalone] || [] }}
needs: ${{ !inputs.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 993eb72

Please sign in to comment.