File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1313 secrets :
1414 OP_SERVICE_ACCOUNT_TOKEN :
1515 required : false
16- PERSONAL_ACCESS_TOKEN :
17- required : false
1816 outputs :
1917 python-version :
2018 description : " The Python version that was set up"
4038
4139 - name : Set token output
4240 id : set-token
43- run : echo "PERSONAL_ACCESS_TOKEN=${PERSONAL_ACCESS_TOKEN}" >> $GITHUB_OUTPUT
41+ run : |
42+ if [ -z "${PERSONAL_ACCESS_TOKEN}" ]; then
43+ echo "Error: PERSONAL_ACCESS_TOKEN is not set"
44+ exit 1
45+ fi
46+ echo "PERSONAL_ACCESS_TOKEN=${PERSONAL_ACCESS_TOKEN}" >> $GITHUB_OUTPUT
47+
48+ - name : Debug token (setup job)
49+ run : |
50+ echo "Token is set: ${{ steps.set-token.outputs.PERSONAL_ACCESS_TOKEN != '' }}"
51+ echo "Token first char: ${PERSONAL_ACCESS_TOKEN:0:1}"
4452
4553 - name : Check out
4654 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments