Skip to content

Commit

Permalink
Merge pull request #26 from vmware-labs/fail-job-wrong-tag
Browse files Browse the repository at this point in the history
Fail the release job when a release hasn't been prepared
  • Loading branch information
mpermar authored Dec 11, 2023
2 parents d13d32b + 1796727 commit 8e590d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e590d4

Please sign in to comment.