From cf5ce177daab78038d84aabd1e53da2b26e621f1 Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Mon, 27 May 2024 14:00:48 -0400 Subject: [PATCH] Use YAML block strip syntax (`>-`) where possible --- .github/workflows/build-and-push-docker-image.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index d811267..417891c 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -24,10 +24,9 @@ jobs: --tag $IMAGE - name: Log in to GHCR if: github.event_name != 'pull_request' - run: | + run: >- echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - name: Push Docker image to GHCR if: github.event_name != 'pull_request' - run: | - docker push $IMAGE + run: docker push $IMAGE