Skip to content

Commit d2cc49e

Browse files
committed
Skip submit tests on pull requests
1 parent e86ed9c commit d2cc49e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
can_submit: ${{ github.event_name == 'push' || github.pull_request.user.login == 'scalacenter' }}
11+
912
jobs:
1013
scalafmt:
1114
name: Scalafmt and Scalafix
@@ -43,9 +46,12 @@ jobs:
4346
jvm: ${{ matrix.jvm }}
4447
apps: sbt
4548
- run: sbt test
46-
- run: sbt scripted
49+
- run: sbt "scripted dependency-manifest/*"
50+
- run: sbt "scripted submit-snapshot/*"
51+
if: github.env.can_submit
4752

4853
test-action:
54+
if: github.env.can_submit
4955
strategy:
5056
matrix:
5157
os: [ubuntu-latest, macOS-latest, windows-latest]

0 commit comments

Comments
 (0)