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
|
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
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue