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 13
13
secrets :
14
14
OP_SERVICE_ACCOUNT_TOKEN :
15
15
required : false
16
- PERSONAL_ACCESS_TOKEN :
17
- required : false
18
16
outputs :
19
17
python-version :
20
18
description : " The Python version that was set up"
40
38
41
39
- name : Set token output
42
40
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}"
44
52
45
53
- name : Check out
46
54
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments