Skip to content

Commit

Permalink
Merge branch 'main' into renovate/main-ghcr.io-onedr0p-sonarr-develop…
Browse files Browse the repository at this point in the history
…-4.x
  • Loading branch information
onedr0p authored Dec 22, 2023
2 parents 8f0e7b5 + a4c93b3 commit fc98ed1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,39 +86,37 @@ jobs:
# path: "${{ matrix.paths }}"
# resource: "${{ matrix.resources }}"

- name: Checkout PR branch
- name: Checkout Live Branch
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"
path: pr

- name: Checkout Live Branch
- name: Checkout PR branch
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"
ref: main
path: live
path: pr

- name: Diff Resources
uses: docker://ghcr.io/allenporter/flux-local:main
with:
args: >-
diff ${{ matrix.resources }}
--unified 6
--path-orig ${{ matrix.paths }}
--path pr/${{ matrix.paths }}
--path-orig live/${{ matrix.paths }}
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart"
--limit-bytes 10000
--all-namespaces
--sources "home-kubernetes"
--output-file diff.txt
--output-file diff.patch
- name: Generate Diff
id: diff
run: |
cat diff.txt
cat diff.patch
echo "diff<<EOF" >> $GITHUB_OUTPUT
cat diff.txt >> $GITHUB_OUTPUT
cat diff.patch >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- if: ${{ steps.diff.outputs.diff != '' }}
Expand Down

0 comments on commit fc98ed1

Please sign in to comment.