From 58ee1075c4900a923983b2e2c2e47161602d1184 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 7 Oct 2024 05:38:16 -0300 Subject: [PATCH] Attempt to fix workflow syntax --- .github/workflows/dependabot-uv-lock.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependabot-uv-lock.yml b/.github/workflows/dependabot-uv-lock.yml index e3053b4b8..7f8e86405 100644 --- a/.github/workflows/dependabot-uv-lock.yml +++ b/.github/workflows/dependabot-uv-lock.yml @@ -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