Skip to content

Commit

Permalink
build(trident): only publish for branches or tags
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed Oct 25, 2024
1 parent cad8503 commit 7a3f42a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/trident.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build:
# github.ref == 'refs/heads/main' &&
if: |
!github.event.pull_request.head.repo.fork
Expand Down Expand Up @@ -63,6 +62,10 @@ jobs:
path: /tmp/docker-images/*.tar

publish:
if: |
startsWith(github.ref, 'refs/heads/') ||
startsWith(github.ref, 'refs/tags/') &&
!github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
needs: build
steps:
Expand Down

0 comments on commit 7a3f42a

Please sign in to comment.