Skip to content

Commit

Permalink
escape quotes in jq filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 4, 2024
1 parent 608feef commit 0cc2de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cleanup_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
dry-run:
description: 'Disable to really delete images'
description: Dry run (do not delete images)
required: false
type: boolean
default: true
Expand All @@ -29,11 +29,11 @@ jobs:
env:
JQ_FILTER: >-
.target
| map(select(has("output"))) | select(map(.output|index("type=docker"))).[].tags
| map(select(has("output"))) | select(map(.output | index("type=docker"))).[].tags
| map(. | split("/")[-1] | split(":")[0])
| join(",")
run: |
echo PACKAGE_NAMES=$(docker buildx bake --print | jq -r "$JQ_FILTER") >> $GITHUB_ENV
echo PACKAGE_NAMES=$(docker buildx bake --print | jq -r ${{ env.JQ_FILTER }}) >> $GITHUB_ENV
- name: Remove tag ${{format('pr-{0}', github.event.pull_request.number)}} after PR is closed
uses: dataaxiom/ghcr-cleanup-action@98b4022383d6ddb70ccbf6a378b4d8c67a60f066 # v1.0.13
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 0cc2de9

Please sign in to comment.