Skip to content

Commit

Permalink
fix(actions): test conditional needs
Browse files Browse the repository at this point in the history
  • Loading branch information
curzolapierre committed Mar 14, 2024
1 parent cbc7baa commit 01d603c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
releases:
needs: [linter-master, linter-pull-request, tests]
name: GoReleaser Build on All OS but Windows
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && needs.linter-master.result == 'success' || needs.linter-pull-request.result == 'success'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -94,7 +94,7 @@ jobs:
releases-windows:
needs: [linter-master, linter-pull-request, tests]
name: GoReleaser Build on Windows
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && needs.linter-master.result == 'success' || needs.linter-pull-request.result == 'success'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 01d603c

Please sign in to comment.