Skip to content

Commit

Permalink
fix: Added specific tag and branch conditions in scala.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dutrevis committed Jun 14, 2024
1 parent cce753c commit ed39419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

publish:
runs-on: ubuntu-latest
if: github.ref_name == 'main'
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
needs:
- test
- lint
Expand All @@ -63,7 +63,7 @@ jobs:

dependency-graph:
runs-on: ubuntu-latest
if: github.ref_name == 'main'
if: github.ref == 'refs/heads/main'
needs:
- publish
permissions:
Expand Down

0 comments on commit ed39419

Please sign in to comment.