diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 1e54e71e..50dfbe4a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -55,6 +55,7 @@ jobs: go-version-file: 'go.mod' - name: Check for outdated bundle + id: bundle-diff-ckecker run: | make bundle git status --porcelain @@ -67,9 +68,16 @@ jobs: echo "Make sure you unset any related env vars like VERSION or IMAGE_TAG_BASE or IMG before running this command, as they may affect the resulting manifests." && \ echo "You might also need to update the CSV in '.rhdh/bundle/manifests/rhdh-operator.csv.yaml' file accordingly." && \ echo "===================" && \ - git --no-pager diff && \ + git --no-pager diff | tee bundle.pr-${{ github.event.number }}.patch && \ exit 1) + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() && steps.bundle-diff-ckecker.outcome == 'failure' }} + with: + name: bundle-diff-patch + path: bundle.pr-${{ github.event.number }}.patch + retention-days: 5 + # gosec needs a "build" stage so connect it to the lint step which we always do - name: build run: make lint