Manual Trigger E2E tests in CircleCI #15
This file contains hidden or 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: Manual Trigger E2E tests in CircleCI | |
| # configure manual trigger | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "The branch to build" | |
| required: true | |
| status: | |
| description: "Report test status" | |
| default: false | |
| type: boolean | |
| required: true | |
| jobs: | |
| execute: | |
| name: Start tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger CircleCI 'local' workflow | |
| if: ${{ github.event.inputs.status == 'false' }} | |
| uses: promiseofcake/[email protected] | |
| with: | |
| user-token: ${{ secrets.CIRCLECI_TOKEN }} | |
| project-slug: slackapi/slack-cli | |
| branch: ${{ github.event.inputs.branch }} | |
| payload: '{"run_local_build_test_workflow": true}' | |
| - name: Trigger CircleCI 'e2e' workflow | |
| if: ${{ github.event.inputs.status == 'true' }} | |
| uses: promiseofcake/[email protected] | |
| with: | |
| user-token: ${{ secrets.CIRCLECI_TOKEN }} | |
| project-slug: slackapi/slack-cli | |
| branch: ${{ github.event.inputs.branch }} | |
| payload: '{"run_local_build_test_workflow": false}' |