diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e671ffc..45371ec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,6 +48,15 @@ jobs: run: | git branch -f release-${{ github.event.inputs.environment }} HEAD git push -f origin release-${{ github.event.inputs.environment }} + - name: Run E2E tests + if: github.event.inputs.environment != 'prod' + uses: octokit/request-action@v2.x + with: + route: POST /repos/nationalarchives/tdr-e2e-tests/actions/workflows/ci.yml/dispatches + ref: master + inputs: "{\"environment\": \"${{ github.event.inputs.environment }}\"}" + env: + GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }} - name: Send failure message id: slack uses: slackapi/slack-github-action@v1.18.0