diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f5bc540..04d0691 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,6 +17,7 @@ jobs: uses: ./.github/workflows/pathogen-repo-ci.yaml with: repo: nextstrain/zika + secrets: inherit test-pathogen-repo-ci-no-example-data: uses: ./.github/workflows/pathogen-repo-ci.yaml diff --git a/.github/workflows/pathogen-repo-ci.yaml b/.github/workflows/pathogen-repo-ci.yaml index ef38e70..2246dfd 100644 --- a/.github/workflows/pathogen-repo-ci.yaml +++ b/.github/workflows/pathogen-repo-ci.yaml @@ -66,14 +66,12 @@ jobs: # repos on GitHub but only available here to this reusable workflow when # called with "secrets: inherit". On Docker Hub, the token is granted # "public read-only" access. - - id: DOCKER_TOKEN_PUBLIC_READ_ONLY - name: Check if DOCKER_TOKEN_PUBLIC_READ_ONLY secret is available + # + # The secrets context is not allowed in "if:" conditions, so we must + # launder it thru env. + - if: env.token-available == 'true' env: - DOCKER_TOKEN_PUBLIC_READ_ONLY: ${{ secrets.DOCKER_TOKEN_PUBLIC_READ_ONLY }} - run: | - tee -a "$GITHUB_OUTPUT" <<