Use a missing-tags-image output

This commit is contained in:
tcely 2025-05-31 23:29:51 -04:00 committed by GitHub
parent 97f3365675
commit 819a0f7e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,7 @@ jobs:
ytdlp-latest-release: ${{ steps.yt-dlp.outputs.latest-release }} ytdlp-latest-release: ${{ steps.yt-dlp.outputs.latest-release }}
ytdlp-releases: ${{ steps.yt-dlp.outputs.releases }} ytdlp-releases: ${{ steps.yt-dlp.outputs.releases }}
missing-tags: ${{ steps.tagged.outputs.missing }} missing-tags: ${{ steps.tagged.outputs.missing }}
missing-tags-image: ${{ steps.tagged.outputs.image }}
steps: steps:
- name: Pull tagged releases - name: Pull tagged releases
id: tagged id: tagged
@ -39,6 +40,7 @@ jobs:
missing='' missing=''
set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ; set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ;
set -eux set -eux
set_sl_var image "${image}" >> "${GITHUB_OUTPUT}"
# v0.14.1 = ghcr.io/meeb/tubesync:latest@sha256:63fffee3411bda395c526087d7107f76834141bb0c1443a0bd6bed5533e5a85f # v0.14.1 = ghcr.io/meeb/tubesync:latest@sha256:63fffee3411bda395c526087d7107f76834141bb0c1443a0bd6bed5533e5a85f
tag_tried='v0.14.1' tag_tried='v0.14.1'
tag_image_digest='latest@sha256:63fffee3411bda395c526087d7107f76834141bb0c1443a0bd6bed5533e5a85f' tag_image_digest='latest@sha256:63fffee3411bda395c526087d7107f76834141bb0c1443a0bd6bed5533e5a85f'
@ -199,7 +201,7 @@ jobs:
if: ${{ github.actor == github.repository_owner && '' != needs.info.outputs.missing-tags }} if: ${{ github.actor == github.repository_owner && '' != needs.info.outputs.missing-tags }}
run: | run: |
missing='${{ needs.info.outputs.missing-tags }}' missing='${{ needs.info.outputs.missing-tags }}'
image='ghcr.io/${{ needs.info.outputs.lowercase-github-actor }}/${{ env.IMAGE_NAME }}' image='${{ needs.info.outputs.missing-tags-image }}'
printf -- '%s\n' "${missing}" | tr '|' '\n' | \ printf -- '%s\n' "${missing}" | tr '|' '\n' | \
while read SPEC while read SPEC
do do