From 66340accdaa1d6246d188541a90d9a1994ef32f0 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Sat, 8 Feb 2020 11:40:58 -0800 Subject: [PATCH] ci: notify e2e dispatcher repository in separate semantic-release-test org --- .github/workflows/notify-e2e-tests.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/notify-e2e-tests.yml diff --git a/.github/workflows/notify-e2e-tests.yml b/.github/workflows/notify-e2e-tests.yml new file mode 100644 index 00000000..8c12848e --- /dev/null +++ b/.github/workflows/notify-e2e-tests.yml @@ -0,0 +1,28 @@ +name: Happy Path +on: + release: + types: [prereleased, published] + +jobs: + happy-path: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-node@v1 + with: + node-version: 12 + + # notify happy-path e2e test repository + - uses: octokit/request-action@v2.x + with: + route: POST /repos/:owner/:repo/dispatches + owner: semantic-release-test + repo: dispatcher + event_type: github_release + client_payload: | + { + "tag": "${{ github.event.release.tag_name }}" + "prerelease": ${{ github.event.release.prerelease }} + } + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT_FOR_DISPATCH_EVENTS }}