Skip to content

Commit

Permalink
fix: Fail build action on tag exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanlesage committed Jun 8, 2022
1 parent e02bb9e commit c71181c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ jobs:
run: |
pkgver=$(node ./scripts/get-pkg-version.js)
echo ::set-output name=version::$pkgver
# If we're building a full release, we have to make sure that nobody (that
# is: Hendrik) forgot to increment the tag version. If we already have a
# tag with this version, we should not proceed, because that will then
# lead to an overwriting of the files in the previous release. That
# doesn't cause any havoc because we don't push unstable code to master,
# BUT it looks bad.
- name: Verify the corresponding tag does not yet exist
if: ${{ !(github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') }}
# Note the ! - it will return 0 if the command fails, and 1 otherwise
run: ! git rev-parse "v${{steps.ref.outputs.version}}"
# Create the windows binaries. First package both for x64 and arm64, then
# make an NSIS installer. Make sure to sign the windows installer using
# the corresponding SSL EV.
Expand Down

0 comments on commit c71181c

Please sign in to comment.