Skip to content

Commit

Permalink
Friendlier error when token is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Aug 28, 2024
1 parent 05b9cea commit 7e4ee0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
- name: Coiled Login Action
uses: ./
with:
token: ${{ secrets.COILED_API_TOKEN }}
token: ${{ secrets.PROD_TEST_BOT_TOKEN }}

7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ inputs:
runs:
using: 'composite'
steps:
- name: Check if token is set
shell: bash
run: |
if [[ -z "${{ inputs.token }}" ]]; then
echo "Token is required."
exit 1
fi
- uses: actions/checkout@v4
- name: Install conda environment
uses: mamba-org/setup-micromamba@v1
Expand Down

0 comments on commit 7e4ee0c

Please sign in to comment.