Fix workflow condition (#14)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
This commit is contained in:
parent
cd0e6b255d
commit
52d7b3c040
1 changed files with 3 additions and 2 deletions
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
|
|
@ -7,8 +7,6 @@ on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
# Releases need permissions to read and write the repository contents.
|
# Releases need permissions to read and write the repository contents.
|
||||||
# GitHub considers creating releases and uploading assets as writing contents.
|
# GitHub considers creating releases and uploading assets as writing contents.
|
||||||
|
|
@ -19,6 +17,9 @@ jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check if tag belongs to main branch
|
||||||
|
if: endsWith(github.ref, 'main') == false
|
||||||
|
run: exit -1
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
# Allow goreleaser to access older tag information.
|
# Allow goreleaser to access older tag information.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue