Skip to content

Commit

Permalink
Verify required inputs are set
Browse files Browse the repository at this point in the history
  • Loading branch information
noahp committed Jul 19, 2024
1 parent 40b02fe commit 88252bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ runs:
with:
python-version: '3.10'

- name: Check inputs
shell: bash
run: |
[[ "${{ inputs.MEMFAULT_ORG_TOKEN }}" ]] || { echo "MEMFAULT_ORG_TOKEN input is empty" ; exit 1; }
[[ "${{ inputs.MEMFAULT_ORG_SLUG }}" ]] || { echo "MEMFAULT_ORG_SLUG input is empty" ; exit 1; }
[[ "${{ inputs.MEMFAULT_PROJECT_SLUG }}" ]] || { echo "MEMFAULT_PROJECT_SLUG input is empty" ; exit 1; }
[[ "${{ inputs.symbol_file }}" ]] || { echo "symbol_file input is empty" ; exit 1; }
- name: Install Dependencies
shell: bash
run: pip install memfault-cli==${{ inputs.memfault_cli_version }}
Expand Down

0 comments on commit 88252bb

Please sign in to comment.