File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 18
18
STRUCTURE101_LICENSEID : ${{ secrets.STRUCTURE101_LICENSEID }}
19
19
ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
20
20
ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
21
- RUN_JOBS : ${{ github.repository == 'spring-projects/spring-security' }}
22
21
23
22
permissions :
24
23
contents : read
@@ -27,14 +26,14 @@ jobs:
27
26
prerequisites :
28
27
name : Pre-requisites for building
29
28
runs-on : ubuntu-latest
29
+ if : ${{ github.repository == 'spring-projects/spring-security' }}
30
30
outputs :
31
31
runjobs : ${{ steps.continue.outputs.runjobs }}
32
32
project_version : ${{ steps.continue.outputs.project_version }}
33
33
steps :
34
34
- uses : actions/checkout@v2
35
35
- id : continue
36
36
name : Determine if should continue
37
- if : env.RUN_JOBS == 'true'
38
37
run : |
39
38
# Run jobs if in upstream repository
40
39
echo "::set-output name=runjobs::true"
Original file line number Diff line number Diff line change @@ -2,24 +2,20 @@ name: PR Build
2
2
3
3
on : pull_request
4
4
5
- env :
6
- RUN_JOBS : ${{ github.repository == 'spring-projects/spring-security' }}
7
-
8
5
permissions :
9
6
contents : read
10
7
11
8
jobs :
12
9
build :
13
10
name : Build
14
11
runs-on : ubuntu-latest
12
+ if : ${{ github.repository == 'spring-projects/spring-security' }}
15
13
steps :
16
- - if : env.RUN_JOBS == 'true'
17
- uses : actions/checkout@v2
14
+ - uses : actions/checkout@v2
18
15
- name : Set up gradle
19
16
uses : spring-io/spring-gradle-build-action@v1
20
17
with :
21
18
java-version : ' 11'
22
19
distribution : ' adopt'
23
20
- name : Build with Gradle
24
- if : env.RUN_JOBS == 'true'
25
21
run : ./gradlew clean build --continue --scan
You can’t perform that action at this time.
0 commit comments