Skip to content

Commit

Permalink
Fix shellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Mar 5, 2025
1 parent a3c5ea9 commit 3d3e88a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/image-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ jobs:
run: |
echo "${{ matrix.branches }}=$(jq --compact-output '.' images.json)" >> "${GITHUB_OUTPUT}"
echo '## Branch ${{ matrix.branches }} images' >> "${GITHUB_STEP_SUMMARY}"
echo '```json' >> "${GITHUB_STEP_SUMMARY}"
jq '.' images.json >> "${GITHUB_STEP_SUMMARY}"
echo '```' >> "${GITHUB_STEP_SUMMARY}"
{
echo '## Branch ${{ matrix.branches }} images'
echo '```json'
jq '.' images.json
echo '```'
} >> "${GITHUB_STEP_SUMMARY}"
compare:
if: ${{ needs.setup.outputs.any_changed == 'true' && needs.extract-images.outputs.default != needs.extract-images.outputs.pull }}
if: ${{ needs.setup.outputs.any_changed == 'true' && needs.extract.outputs.default != needs.extract.outputs.pull }}
name: Image Pull - Compare Images
runs-on: ubuntu-latest
needs: ["setup", "extract"]
Expand All @@ -87,10 +89,12 @@ jobs:
)
echo "images=${images}" >> "${GITHUB_OUTPUT}"
echo '## New images to Pull' >> "${GITHUB_STEP_SUMMARY}"
echo '```json' >> "${GITHUB_STEP_SUMMARY}"
echo $images | jq >> "${GITHUB_STEP_SUMMARY}"
echo '```' >> "${GITHUB_STEP_SUMMARY}"
{
echo '## New images to Pull'
echo '```json'
echo $images | jq
echo '```'
} >> "${GITHUB_STEP_SUMMARY}"
pull:
if: ${{ needs.setup.outputs.any_changed == 'true' && needs.compare.outputs.images != '[]' }}
Expand Down

0 comments on commit 3d3e88a

Please sign in to comment.