File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
branches : [main]
8
8
9
- env :
10
- can_submit : ${{ github.event_name == 'push' || github.pull_request.user.login == 'scalacenter' }}
11
-
12
9
jobs :
13
10
scalafmt :
14
11
name : Scalafmt and Scalafix
@@ -41,17 +38,20 @@ jobs:
41
38
GITHUB_TOKEN : ${{ github.token }}
42
39
steps :
43
40
- uses : actions/checkout@v3
41
+ - run : echo ${{ github.event.pull_request.user.login }}
42
+ - run : echo ${{ github.event.pull_request.head.repo.owner.login }}
43
+ - run : echo ${{ github.event_name == 'push' || github.event.pull_request.head.repo.owner.login == 'scalacenter' }}
44
44
- uses : coursier/setup-action@v1.2.0-M3
45
45
with :
46
46
jvm : ${{ matrix.jvm }}
47
47
apps : sbt
48
48
- run : sbt test
49
49
- run : sbt "scripted dependency-manifest/*"
50
50
- run : sbt "scripted submit-snapshot/*"
51
- if : github.env.can_submit
51
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.owner.login == 'scalacenter'
52
52
53
53
test-action :
54
- if : github.env.can_submit
54
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.owner.login == 'scalacenter'
55
55
strategy :
56
56
matrix :
57
57
os : [ubuntu-latest, macOS-latest, windows-latest]
You can’t perform that action at this time.
0 commit comments