From 5c62a8a4c6951b3b97329a9f1d56396c50753565 Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Thu, 12 Dec 2024 14:40:47 +0000 Subject: [PATCH] Pass gracefully if tag is already in place --- .github/workflows/set_version.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/set_version.yml b/.github/workflows/set_version.yml index ed58d6bc9..5bbf42c24 100644 --- a/.github/workflows/set_version.yml +++ b/.github/workflows/set_version.yml @@ -61,10 +61,15 @@ jobs: git commit -m "Set version number" fi - - name: "Tag new commit" + - name: "Tag commit" shell: bash -l {0} run: | - git tag $VERSION_STRING + if test $(git describe --tags --exact-match) = $VERSION_STRING + then + echo "The correct tag is already on this commit" + else + git tag $VERSION_STRING + fi - name: "Show updated log" run: |