From 993eb721e8fd01f6f6eb23cd6109996bccc66407 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Mon, 15 Jul 2024 10:06:50 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1424a978..ad5703ed4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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