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 committed Nov 8, 2023
1 parent 75cdefb commit a6f7424
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 a6f7424

Please sign in to comment.