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 2759d78 commit b579b2f
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
- uses: actions/setup-go@v4.0.0
with:
go-version: 1.21.6
Expand Down

0 comments on commit b579b2f

Please sign in to comment.