From b813dcbfb08a0b38cdf8f5806b7d14cce3c85f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20=C4=B0ndibay?= Date: Wed, 25 Aug 2021 20:18:53 +0300 Subject: [PATCH] Issue #237 Manual tag creation error (#238) --- .github/workflows/publish_docker_images_on_manual.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docker_images_on_manual.yml b/.github/workflows/publish_docker_images_on_manual.yml index 03c7da1..add4368 100644 --- a/.github/workflows/publish_docker_images_on_manual.yml +++ b/.github/workflows/publish_docker_images_on_manual.yml @@ -5,12 +5,15 @@ on: inputs: trigger_type: description: "Type of build which you want to trigger. Allowed values: main, tags, nightly" + required: true tag_name: - description: "The tag name on the project repo to be released. It is mandatory if you select the trigger_type as 'tags' " + description: "The tag name on the project repo to be released. It is mandatory if you select the trigger_type as 'tags'" + required: false default: "" jobs: build_and_publish_images: + name: Build and publish images runs-on: ubuntu-latest strategy: fail-fast: false @@ -35,4 +38,5 @@ jobs: python -m tools.packaging_automation.publish_docker \ --pipeline_trigger_type "${GITHUB_EVENT_NAME}" \ --tag_name ${{ github.event.inputs.tag_name }} \ - --manual_trigger_type ${{ github.event.inputs.trigger_type }} + --manual_trigger_type ${{ github.event.inputs.trigger_type }} \ + --github_ref "${GITHUB_REF}"