feat: ensure PERSONAL_ACCESS_TOKEN is not empty

This commit is contained in:
Michael Sasser 2024-12-27 17:02:48 +01:00
parent 96298ccccc
commit 03292facbf
Signed by: michael
GPG key ID: 5F653AC7631F5151

View file

@ -46,16 +46,15 @@ runs:
id: prepared id: prepared
shell: bash shell: bash
run: | run: |
echo '::group::Prepared Data'
# #
# PAT # PAT
# #
if [ -n '${{ inputs.PERSONAL_ACCESS_TOKEN }}' ]; then if [ -z '${{ inputs.PERSONAL_ACCESS_TOKEN }}' ]; then
echo '::error title=PAT empty::You need to specify the input PERSONAL_ACCESS_TOKEN. Currently, it is an empty string.' echo '::error title=PAT empty::You need to specify the input PERSONAL_ACCESS_TOKEN. Currently, it is an empty string.'
exit 1 exit 1
fi fi
echo '::group::Prepared Data'
# #
# Package # Package
# #