File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,20 @@ jobs:
11
11
- name : Get the branch name
12
12
id : get_branch
13
13
run : echo ::set-output name=branch::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})
14
+
15
+ - name : Get the originating repository
16
+ id : get_repo
17
+ run : |
18
+ if [[ "${{ github.event_name }}" == "pull_request" ]]; then
19
+ echo ::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }}
20
+ else
21
+ echo ::set-output name=repo::${{ github.repository }}
22
+ fi
23
+
14
24
- name : Repository Dispatch
15
25
uses : peter-evans/repository-dispatch@v1
16
26
with :
17
27
token : " ${{ secrets.PAT_INTEGRATION_TESTS}}"
18
28
repository : ulisesgascon/express-examples
19
29
event-type : integration-tests
20
- client-payload : ' {"branch": "${{ steps.get_branch.outputs.branch }}"}'
30
+ client-payload : ' {"branch": "${{ steps.get_branch.outputs.branch }}", "repo": "${{ steps.get_repo.outputs.repo }}" }'
You can’t perform that action at this time.
0 commit comments