Skip to content

Commit dd37599

Browse files
committed
add cli e2e workflow
1 parent c05a001 commit dd37599

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/cli-verify-json-pr.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,22 @@ on:
2727
- "True"
2828
- "False"
2929
default: "False"
30+
run_on_pr:
31+
description: "Select 'True' to allow execution on pull requests when using workflow_dispatch. Defaults to 'False'"
32+
required: false
33+
type: choice
34+
options:
35+
- "True"
36+
- "False"
37+
default: "False"
3038

3139
jobs:
3240
test-linode-cli:
3341
runs-on: ubuntu-latest
34-
if: github.event_name == 'workflow_dispatch' && inputs.sha != '' || github.event_name == 'push' || github.event_name == 'pull_request'
42+
if: |
43+
github.event_name == 'workflow_dispatch' && inputs.sha != '' ||
44+
github.event_name == 'push' ||
45+
(github.event_name == 'pull_request' && inputs.run_on_pr == 'True')
3546
3647
steps:
3748
- name: Checkout Current Repository (JSON Spec)
@@ -55,7 +66,7 @@ jobs:
5566
python-version: "3.10"
5667

5768
- name: Get JSON Spec Path
58-
run: echo "JSON_SPEC_PATH=$(pwd)/json-spec/spec.json" >> $GITHUB_ENV
69+
run: echo "JSON_SPEC_PATH=$(pwd)/json-spec/openapi.json" >> $GITHUB_ENV
5970

6071
- name: Install Linode CLI dependencies
6172
run: |

0 commit comments

Comments
 (0)