Skip to content

Commit 6551198

Browse files
committed
fix: branch reference
1 parent 23ad7ed commit 6551198

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: .github/workflows/integration-tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ jobs:
88
dispatch:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Get the branch name
12+
id: get_branch
13+
run: echo ::set-output name=branch::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})
1114
- name: Repository Dispatch
1215
uses: peter-evans/repository-dispatch@v1
1316
with:
1417
token: "${{ secrets.PAT_INTEGRATION_TESTS}}"
1518
repository: ulisesgascon/express-examples
1619
event-type: integration-tests
17-
client-payload: '{"branch": "${{ github.head_ref || github.ref }}"}'
20+
client-payload: '{"branch": "${{ steps.get_branch.outputs.branch }}"}'

0 commit comments

Comments
 (0)