From c43b4733a847096924941f7888607e75992c994d Mon Sep 17 00:00:00 2001 From: Diana Barsan <35681649+dianabarsan@users.noreply.github.com> Date: Mon, 17 May 2021 16:17:17 +0300 Subject: [PATCH] Update workflow to work for external contributors (#90) #89 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d648b68..812511e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,15 @@ jobs: node-version: [ 8, 10, 12 ] steps: + - name: Get Docker Hub username + id: get-docker-hub-username + run: echo '::set-output name=dockerhub_username::${{ secrets.CI_DOCKER_USERNAME }}' - name: Login to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.CI_DOCKER_USERNAME }} password: ${{ secrets.CI_DOCKER_PASSWORD }} - + if: steps.get-docker-hub-username.outputs.dockerhub_username - name: Checkout branch uses: actions/checkout@v2