Skip to content

fix: branch reference #3

fix: branch reference

fix: branch reference #3

name: Integration Tests
on:
- pull_request
- push
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": "${{ steps.get_branch.outputs.branch }}"}'