Attempt to fix workflow syntax

This commit is contained in:
Bruno Alla 2024-10-07 05:38:16 -03:00
parent 74dcf18019
commit 58ee1075c4
No known key found for this signature in database

View File

@ -14,12 +14,17 @@ jobs:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}
# Only run when GH_PAT is set
if: ${{ github.env.GH_PAT != '' }}
steps:
- uses: actions/checkout@v4
- name: Checkout with token
uses: actions/checkout@v4
if: ${{ env.GH_PAT != '' }}
with:
token: ${{ secrets.GH_PAT }}
token: ${{ env.GH_PAT }}
- name: Checkout without token
uses: actions/checkout@v4
if: ${{ env.GH_PAT == '' }}
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true