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 6cbb0df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 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-checker
run: |
make bundle
git status --porcelain
Expand All @@ -67,9 +68,17 @@ 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)
- name: Save bundle diff as patch
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.bundle-diff-checker.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 6cbb0df

Please sign in to comment.