From a6f7424c1b3726f05c49b8390f544eed9fc4b850 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 8 Nov 2023 18:11:11 +0100 Subject: [PATCH] Better handle multi-line outputs in develocity-publish-build-scans.yml --- .github/workflows/develocity-publish-build-scans.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develocity-publish-build-scans.yml b/.github/workflows/develocity-publish-build-scans.yml index e56ea04a0d47a..b269a77a6c560 100644 --- a/.github/workflows/develocity-publish-build-scans.yml +++ b/.github/workflows/develocity-publish-build-scans.yml @@ -20,8 +20,9 @@ jobs: - name: Extract preapproved developers list id: extract-preapproved-developers run: | - preapproveddevelopers=$(cat .github/develocity-preapproved-developers.json) - echo "preapproved-developpers=${preapproveddevelopers}" >> $GITHUB_OUTPUT + echo "preapproved-developpers<> $GITHUB_OUTPUT + cat .github/develocity-preapproved-developers.json >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT - name: Publish Maven Build Scans uses: gradle/github-actions/maven-build-scan/publish@v1-beta if: ${{ contains(fromJson(steps.extract-preapproved-developers.outputs.preapproved-developpers).preapproved-developers, github.event.workflow_run.actor.login) }}