mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 10:18:27 +00:00
fix(flux-local): split diff into multiple comments
This commit is contained in:
7
.github/workflows/kube-flux-diff.yaml
vendored
7
.github/workflows/kube-flux-diff.yaml
vendored
@@ -42,13 +42,14 @@ jobs:
|
||||
mkdir -p ${{ matrix.path }}/${{ matrix.resource }}
|
||||
mkdir -p final/${{ matrix.path }}/${{ matrix.resource }}
|
||||
# echo 'CURRENTPATH=${{ matrix.path }}' | sed -e 's/\//-/g' >> "${GITHUB_ENV}"
|
||||
cat <<EOF | split -C 65520 --numeric-suffixes - ${{ matrix.path }}/${{ matrix.resource }}/out
|
||||
cat <<EOF | split -C 65500 --numeric-suffixes - ${{ matrix.path }}/${{ matrix.resource }}/out
|
||||
${{ steps.diff.outputs.diff }}
|
||||
EOF
|
||||
readarray -d '' splitfiles < <(find ${{ matrix.path }}/${{ matrix.resource }} -type f -print0)
|
||||
IFS=$'%' echo "${splitfiles[*]}"
|
||||
for i in "${splitfiles[@]}"; do
|
||||
echo '```diff' > "final/${i}"
|
||||
echo "## ${i}" > "final/${i}"
|
||||
echo '```diff' >> "final/${i}"
|
||||
cat "${i}" >> "final/${i}"
|
||||
echo '```' >> "final/${i}"
|
||||
done
|
||||
@@ -60,7 +61,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: "${{ steps.split.outputs.artifact }}"
|
||||
path: split
|
||||
path: split/final
|
||||
outputs:
|
||||
files: "${{ steps.split.outputs.files }}"
|
||||
artifact: "${{ steps.split.outputs.artifact }}"
|
||||
|
||||
Reference in New Issue
Block a user