Upload openrewrite patch via GHA (#16270)

This patch adds a step to the openrewrite action, such that it uploads the correcting patch, in case it fails.
This commit is contained in:
Laksh Singla 2024-04-12 15:31:07 +05:30 committed by GitHub
parent f65c166327
commit cce2d0f127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -163,9 +163,17 @@ jobs:
${MVN} install -q -ff -pl 'distribution' ${MAVEN_SKIP} ${MAVEN_SKIP_TESTS}
- name: rewrite:dryRun
id: rewrite-dryRun
run: |
${MVN} rewrite:dryRun ${MAVEN_SKIP}
- name: Upload open rewrite patch
if: ${{ failure() && steps.rewrite-dryRun.conclusion == 'failure' }}
uses: actions/upload-artifact@master
with:
name: Rewrite patch
path: ./target/rewrite/rewrite.patch
web-checks:
strategy:
fail-fast: false