Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Save diff as patch file, so it can be downloaded and applied with Git
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Feb 12, 2024
1 parent 5167d86 commit 39c26a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: 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
Expand Down

0 comments on commit 39c26a7

Please sign in to comment.