File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Federation Compatibility
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ fork :
7
+ default : false
8
+ type : boolean
5
9
secrets :
6
10
token :
7
11
required : true
15
19
working-directory : integration/federation-compatibility
16
20
17
21
steps :
18
- - uses : actions/checkout@v3
22
+ - name : Checkout Repository
23
+ if : ${{ inputs.fork }} == false
24
+ uses : actions/checkout@v3
25
+ - name : Checkout Repository (fork mode)
26
+ if : ${{ inputs.fork }} == true
27
+ uses : actions/checkout@v3
28
+ with :
29
+ ref : ${{ github.event.pull_request.head.sha }}
19
30
20
31
- name : Validate Gradle wrapper
21
32
uses : gradle/wrapper-validation-action@v1
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Federation Composition Test
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ fork :
7
+ default : false
8
+ type : boolean
5
9
6
10
jobs :
7
11
federation-composition-test :
12
16
working-directory : examples/federation
13
17
14
18
steps :
15
- - uses : actions/checkout@v3
19
+ - name : Checkout Repository
20
+ if : ${{ inputs.fork }} == false
21
+ uses : actions/checkout@v3
22
+ - name : Checkout Repository (fork mode)
23
+ if : ${{ inputs.fork }} == true
24
+ uses : actions/checkout@v3
25
+ with :
26
+ ref : ${{ github.event.pull_request.head.sha }}
16
27
17
28
- name : Set up Java 17
18
29
uses : actions/setup-java@v3
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
federation-compatibility :
13
13
uses : ./.github/workflows/federation-compatibility.yml
14
+ with :
15
+ fork : true
14
16
secrets :
15
17
token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
16
18
17
19
federation-composition :
18
- needs : build-libraries
19
20
uses : ./.github/workflows/federation-composition.yml
21
+ with :
22
+ fork : true
You can’t perform that action at this time.
0 commit comments