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
This commit is contained in:
parent
4484879651
commit
af04080346
1 changed files with 1 additions and 1 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -122,9 +122,9 @@ jobs:
|
||||||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
|
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
|
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
|
||||||
if: ${{ env.DOCKERHUB_USERNAME != '' && (env.DOCKERHUB_PASSWORD != '' || env.DOCKERHUB_TOKEN != '') && env.DOCKERHUB_REPOSITORY != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Sync README
|
- name: Sync README
|
||||||
|
if: ${{ env.DOCKERHUB_USERNAME != '' && (env.DOCKERHUB_PASSWORD != '' || env.DOCKERHUB_TOKEN != '') && env.DOCKERHUB_REPOSITORY != '' }}
|
||||||
uses: docker://lsiodev/readme-sync:latest
|
uses: docker://lsiodev/readme-sync:latest
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_USERNAME: ${{ env.DOCKERHUB_USERNAME }}
|
DOCKERHUB_USERNAME: ${{ env.DOCKERHUB_USERNAME }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue