Skip to content

Commit 8e85d1d

Browse files
committed
remove file input
1 parent d090b30 commit 8e85d1d

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ on:
99
- development
1010
workflow_dispatch:
1111
inputs:
12-
spec_file:
13-
description: 'Choose a file'
14-
required: false
15-
type: 'file'
1612
sha:
1713
description: 'Specify commit hash to test. This value is mandatory to ensure the tests run against a specific commit'
18-
required: false
14+
required: true
1915
default: ''
2016
pull_request_number:
2117
description: 'Specify pull request number associated with the commit. Optional, but recommended when providing a commit hash (sha)'
@@ -44,7 +40,7 @@ jobs:
4440
test-linode-cli:
4541
runs-on: ubuntu-latest
4642
if: |
47-
github.event_name == 'workflow_dispatch' ||
43+
github.event_name == 'workflow_dispatch' && inputs.sha != '' ||
4844
github.event_name == 'push' ||
4945
(github.event_name == 'pull_request' && inputs.run_on_pr == 'True')
5046
@@ -72,19 +68,12 @@ jobs:
7268
- name: Get JSON Spec Path
7369
run: |
7470
cd json-spec
75-
# Set default JSON spec path
7671
echo "JSON_SPEC_PATH=$(pwd)/openapi.json" >> $GITHUB_ENV
77-
# If spec_file is provided, use it; otherwise fallback to default
78-
if [[ -n "${{ inputs.spec_file }}" ]]; then
79-
echo "SPEC_FILE_PATH=${{ inputs.spec_file }}" >> $GITHUB_ENV
80-
else
81-
echo "SPEC_FILE_PATH=$(pwd)/openapi.json" >> $GITHUB_ENV
82-
fi
8372
8473
- name: Install Linode CLI
8574
run: |
8675
cd linode-cli
87-
SPEC="${{ env.SPEC_FILE_PATH }}" make install
76+
SPEC="${{ env.JSON_SPEC_PATH }}" make install
8877
8978
- name: Run CLI E2E Tests
9079
run: |

0 commit comments

Comments
 (0)