Skip to content

Commit

Permalink
action.yml: add check for auth info
Browse files Browse the repository at this point in the history
This is effectively a noop right now, since the api-key input is
required. This is in preparation for merging #24 where you can specify
an api-key or oauth credentials.

Signed-off-by: Will Norris <will@tailscale.com>
  • Loading branch information
willnorris committed Jan 29, 2024
1 parent 6f2b1f9 commit 9b4b12d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ inputs:
runs:
using: "composite"
steps:
- name: Check Auth Info Empty
if: ${{ inputs.api-key == '' }}
shell: bash
run: |
echo "::error title=⛔ error hint::API Key empty. Maybe you need to populate it in the Secrets for your workflow, see more in https://docs.github.com/en/actions/security-guides/encrypted-secrets"
exit 1
- shell: bash
env:
GOBIN: /usr/local/bin/
Expand Down

0 comments on commit 9b4b12d

Please sign in to comment.