@@ -136,29 +136,11 @@ jobs:
136136
137137 - name: Bump release version (optional)
138138 if: steps.release_bump.outputs.bump != ''
139- run: |
140- set -euo pipefail
141- # Invoke the pinned patch-release-me image directly via `docker run`
142- # instead of `uses: 42ByteLabs/patch-release-me@...`. That action's own
143- # action.yml builds its Docker CMD as a single YAML list item
144- # (`-m "${{ inputs.mode }}"`); Docker container actions don't go
145- # through a shell, so the literal quote characters end up baked into
146- # ONE argv token (`-m "minor"`). clap can't match that against
147- # "patch"/"minor"/"major" and silently falls back to its own default
148- # (Patch) - meaning `minor`/`major` have always quietly produced a
149- # patch bump instead (confirmed via a local repro: see PR history).
150- # Running the same pinned image ourselves via a normal shell `run:`
151- # step naturally splits `-m` and the mode value into separate argv
152- # entries, avoiding the bug entirely.
153- #
154- # Pinned by digest (not just tag) so the exact image content can't
155- # change out from under us - digest corresponds to the 0.6.5 tag.
156- docker run --rm \
157- --user "$(id -u):$(id -g)" \
158- -v "${{ github.workspace }}:/repo" \
159- -w /repo \
160- ghcr.io/42bytelabs/patch-release-me@sha256:d9d7abe7051855d0c395fec99d931acc002fb6b299ca16b8123e2c8ef0c7e750 \
161- --disable-banner bump -m ${{ steps.release_bump.outputs.bump }}
139+ # TODO: Return to the upstream action after its runtime image is digest-pinned:
140+ # https://github.com/42ByteLabs/patch-release-me/issues/169
141+ uses: docker://ghcr.io/42bytelabs/patch-release-me:0.6.7@sha256:b9624359ce08707dfb4d22bcbf9d1a75f7f4718ccec610ddaa62280ffea98958
142+ with:
143+ args: --disable-banner bump -m ${{ steps.release_bump.outputs.bump }}
162144
163145 - name: Set release prerelease flag (optional)
164146 if: steps.release_bump.outputs.bump != ''
0 commit comments