From e37279314a8e61491a0880f4d59baef876e19ff8 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Fri, 26 Aug 2022 14:24:47 +0200 Subject: [PATCH] CI: Fix hopeless-docker prevention [why] I am sure I tested it and it worked. Well, it does not, it throws an error message Unrecognized named-value: 'secrets' [how] Secrets can not be used in the `if`, see https://github.com/actions/runner/issues/520 But they can be used in `env`, ... so do it there. Signed-off-by: Fini Jastrow --- .github/workflows/docker-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 1898da64195..6ccad540d8e 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -17,7 +17,7 @@ jobs: publish-image: name: Publish image runs-on: ubuntu-latest - if: ${{ secrets.DOCKER_USER }} + if: ${{ github.repository_owner == 'ryanoasis' }} steps: - uses: actions/checkout@v3 - name: Build image