From 17967275eb00d7f700197a0c5c4ff8748a126bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20P=C3=A9rez?= Date: Mon, 11 Dec 2023 18:36:57 +0100 Subject: [PATCH] Fail the release job when a release hasn't been prepared --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7390fee..7f9618d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,8 +26,8 @@ jobs: echo "::set-output name=PLUGIN_VERSION::$PLUGIN_VERSION" - name: Check Version - if: ${{ steps.version.outputs.PLUGIN_VERSION == inputs.tag }} - run: echo "Plugin version matches input tag" + if: ${{ steps.version.outputs.PLUGIN_VERSION != inputs.tag }} + run: echo "Plugin version does not match input tag. Please make sure you have prepared the release first." && exit 1 - name: Set Golang uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1