Skip to content

Commit 0c4a8b0

Browse files
committed
check secret
1 parent cc04ab6 commit 0c4a8b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ jobs:
4343
echo "$FILE exists and has size $(stat -c%s "$FILE")"
4444
head -n 20 "$FILE"
4545
fi
46-
46+
- name: Check secret
47+
run: |
48+
if [ -z "${COVERALLS_REPO_TOKEN}" ]; then
49+
echo "COVERALLS_REPO_TOKEN is not set!"
50+
exit 1
51+
else
52+
echo "COVERALLS_REPO_TOKEN is available"
53+
fi
54+
env:
55+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4756
- name: Upload coverage to Coveralls
4857
if: success()
4958
env:

0 commit comments

Comments
 (0)