feat: ensure PERSONAL_ACCESS_TOKEN is not empty
This commit is contained in:
parent
96298ccccc
commit
03292facbf
1 changed files with 2 additions and 3 deletions
|
@ -46,16 +46,15 @@ runs:
|
|||
id: prepared
|
||||
shell: bash
|
||||
run: |
|
||||
echo '::group::Prepared Data'
|
||||
|
||||
#
|
||||
# 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.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo '::group::Prepared Data'
|
||||
#
|
||||
# Package
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue