Skip to content

Commit 3b9f004

Browse files
Update setup.yaml
1 parent 239b149 commit 3b9f004

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/setup.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
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"
@@ -40,7 +38,17 @@ jobs:
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

0 commit comments

Comments
 (0)