Skip to content

Commit f848629

Browse files
committed
action.yml: add check for auth info
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>
1 parent c36b0d7 commit f848629

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ inputs:
1717
runs:
1818
using: "composite"
1919
steps:
20+
- name: Check Auth Info Empty
21+
if: ${{ inputs.api-key == '' }}
22+
shell: bash
23+
run: |
24+
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"
25+
exit 1
2026
- uses: actions/setup-go@v4.0.0
2127
with:
2228
go-version: 1.21.6

0 commit comments

Comments
 (0)