From 798ec9003350fa18a819389e07b041a97ddfad01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Korb?= Date: Sun, 10 Mar 2024 20:20:20 +0100 Subject: [PATCH] Fix multiline output in GitHub Actions workflows --- .github/workflows/build-and-check.yaml | 7 ++++++- .github/workflows/build-and-push.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-check.yaml b/.github/workflows/build-and-check.yaml index 33aff8e..de7c134 100644 --- a/.github/workflows/build-and-check.yaml +++ b/.github/workflows/build-and-check.yaml @@ -47,7 +47,12 @@ jobs: run: yarn build - name: Check for changes id: check-for-changes - run: echo "diff=$( git diff )" >> $GITHUB_OUTPUT + run: | + { + echo "diff<> "$GITHUB_OUTPUT" check: name: Check distribution file runs-on: ubuntu-latest diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 2d957df..68676f2 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -30,7 +30,12 @@ jobs: run: yarn build - name: Check for changes id: check-for-changes - run: echo "diff=$( git diff )" >> $GITHUB_OUTPUT + run: | + { + echo "diff<> "$GITHUB_OUTPUT" - if: ${{ steps.check-for-changes.outputs.diff != '' }} name: Configure Git run: |