-
Notifications
You must be signed in to change notification settings - Fork 32
40 lines (38 loc) · 1.38 KB
/
e2e_tests.yml
File metadata and controls
40 lines (38 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
permissions:
contents: none
steps:
- name: Trigger CircleCI 'local' workflow
if: ${{ github.event.inputs.status == 'false' }}
uses: promiseofcake/circleci-trigger-action@a72a9ff0b0c663613c13e47d53301ea55d7da5d9 # v3.0.1
with:
user-token: ${{ secrets.CIRCLECI_TOKEN }}
project-slug: slackapi/slack-cli
branch: ${{ github.event.inputs.branch }}
definition-id: ${{ secrets.CIRCLECI_DEFINITION_ID }}
payload: '{"run_local_build_test_workflow": true}'
- name: Trigger CircleCI 'e2e' workflow
if: ${{ github.event.inputs.status == 'true' }}
uses: promiseofcake/circleci-trigger-action@a72a9ff0b0c663613c13e47d53301ea55d7da5d9 # v3.0.1
with:
user-token: ${{ secrets.CIRCLECI_TOKEN }}
project-slug: slackapi/slack-cli
branch: ${{ github.event.inputs.branch }}
definition-id: ${{ secrets.CIRCLECI_DEFINITION_ID }}
payload: '{"run_local_build_test_workflow": false}'