From af040803467e1ac6ccbc60423ef320578dc0c5ee Mon Sep 17 00:00:00 2001 From: KennyG Date: Mon, 30 Mar 2026 12:29:45 -0400 Subject: [PATCH] Fix workflow parse error by moving DockerHub condition to step level. GitHub Actions does not allow env context in job-level if expressions, so this keeps the conditional behavior while restoring valid workflow syntax. Made-with: Cursor --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6f3763..e5cecd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -122,9 +122,9 @@ jobs: DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }} - if: ${{ env.DOCKERHUB_USERNAME != '' && (env.DOCKERHUB_PASSWORD != '' || env.DOCKERHUB_TOKEN != '') && env.DOCKERHUB_REPOSITORY != '' }} steps: - name: Sync README + if: ${{ env.DOCKERHUB_USERNAME != '' && (env.DOCKERHUB_PASSWORD != '' || env.DOCKERHUB_TOKEN != '') && env.DOCKERHUB_REPOSITORY != '' }} uses: docker://lsiodev/readme-sync:latest env: DOCKERHUB_USERNAME: ${{ env.DOCKERHUB_USERNAME }}