From 1959fc6821ed6d5484b4f7a578ea10ab41583743 Mon Sep 17 00:00:00 2001 From: Vitalii Savitskii Date: Tue, 2 Jul 2024 16:48:56 +0200 Subject: [PATCH] Change condition type --- .github/workflows/publish-ecr-public.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-ecr-public.yaml b/.github/workflows/publish-ecr-public.yaml index 84ddc90..17325de 100644 --- a/.github/workflows/publish-ecr-public.yaml +++ b/.github/workflows/publish-ecr-public.yaml @@ -5,7 +5,9 @@ on: workflow_dispatch: inputs: version: - description: Version number to publish + description: | + Version number to publish. Defaults to the latest git tag in the repository. + This version MUST exist in the ghcr.io registry. required: false default: "current" @@ -18,7 +20,7 @@ jobs: publish_image: name: Publish Docker Image to ECR Public runs-on: ubuntu-latest -# if: ${{ startsWith(github.ref, 'refs/tags') }} + if: ${{ startsWith(github.ref, 'refs/tags') }} permissions: contents: read