Integration Tests #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Get the originating repository | |
id: get_repo | |
run: | | |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then | |
echo ::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }} | |
else | |
echo ::set-output name=repo::${{ github.repository }} | |
fi | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0 | |
with: | |
token: "${{ secrets.PAT_INTEGRATION_TESTS}}" | |
repository: expressjs/examples | |
event-type: integration-tests | |
client-payload: '{"branch": "${{ steps.get_branch.outputs.branch }}", "repo": "${{ steps.get_repo.outputs.repo }}"}' |