Skip to content

Commit 09a1e19

Browse files
Update setup.yaml
1 parent 9ad3543 commit 09a1e19

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/setup.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
runs-on: ubuntu-latest
2929
outputs:
3030
python-version: ${{ steps.setup-python.outputs.python-version }}
31-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
31+
PERSONAL_ACCESS_TOKEN: ${{ steps.set-token.outputs.PERSONAL_ACCESS_TOKEN }}
3232
steps:
3333
- name: Load secret
34+
id: load-secret
3435
if: ${{ inputs.install-deps != 'none' }}
3536
uses: 1password/load-secrets-action@v2
3637
with:
@@ -39,6 +40,11 @@ jobs:
3940
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
4041
PERSONAL_ACCESS_TOKEN: op://shawndengdev/github_access_token/credential
4142

43+
- name: Set token output
44+
id: set-token
45+
if: ${{ inputs.install-deps != 'none' }}
46+
run: echo "PERSONAL_ACCESS_TOKEN=${PERSONAL_ACCESS_TOKEN}" >> $GITHUB_OUTPUT
47+
4248
- name: Check out
4349
uses: actions/checkout@v4
4450
with:

0 commit comments

Comments
 (0)