Skip to content

Commit

Permalink
Fix GitHub Actions build reports on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Sep 21, 2023
1 parent 8071280 commit ebeba89
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,20 @@ jobs:
run: ./ci/docker-cleanup.sh
- name: Omit produced artifacts from build cache
run: rm -r ~/.m2/repository/org/hibernate/search
# Workaround for https://github.com/actions/upload-artifact/issues/240
- name: List build reports to upload (if build failed)
# The weird syntax is because we're setting a multiline environment variable
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-a-multiline-string
run: |
{
echo 'reportPaths<<EOF'
find . -path '**/*-reports/**'
echo EOF
} >> "$GITHUB_ENV"
- name: Upload build reports (if build failed)
uses: actions/upload-artifact@v3
if: ${{ failure() || cancelled() }}
with:
name: ${{ format('build-reports-{0}', github.job) }}
path: |
./**/*-reports/
retention-days: 2
path: ${{ env.reportPaths }}
retention-days: 7

0 comments on commit ebeba89

Please sign in to comment.