Skip to content

Commit 1b5fb50

Browse files
authored
Merge pull request #212 from Atry/template
Update template
2 parents 8b4d12f + 23d7a9d commit 1b5fb50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/scala.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Scala CI
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches-ignore:
6+
- 'update/**'
7+
pull_request:
68

79
jobs:
810
build:
@@ -44,5 +46,5 @@ jobs:
4446
- name: Publish to Maven Central Repository
4547
env:
4648
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
47-
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }}
49+
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }}
4850
run: sbt ${{matrix.sbt-args}} ++${{matrix.scala}} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}} ${{github.run_number}} ${{github.run_attempt}} ${{matrix.scala}}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease

0 commit comments

Comments
 (0)