Skip to content

Commit

Permalink
fix: branch reference
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Feb 18, 2024
1 parent 23ad7ed commit 6551198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Get the branch name
id: get_branch
run: echo ::set-output name=branch::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: "${{ secrets.PAT_INTEGRATION_TESTS}}"
repository: ulisesgascon/express-examples
event-type: integration-tests
client-payload: '{"branch": "${{ github.head_ref || github.ref }}"}'
client-payload: '{"branch": "${{ steps.get_branch.outputs.branch }}"}'

0 comments on commit 6551198

Please sign in to comment.