Skip to content

Commit

Permalink
Better handle multi-line outputs in develocity-publish-build-scans.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and DavideD committed Nov 27, 2023
1 parent d81df90 commit f94faf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/develocity-publish-build-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $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) }}
Expand Down

0 comments on commit f94faf9

Please sign in to comment.