Skip to content

Commit

Permalink
Disable publish step if not on master
Browse files Browse the repository at this point in the history
  • Loading branch information
apascali-1A committed Nov 17, 2023
1 parent 3797fd0 commit a7855ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/scala-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:

publish:
runs-on: ubuntu-latest
# Add a condition to run only on the main branch
if: github.ref == 'refs/heads/master'

needs: [ build ]

Expand Down

0 comments on commit a7855ab

Please sign in to comment.