RK_DEV_SETUP_STEPSRK_DEV_GIT_USER
# The request half writes the whole JSON report as the pr output. The
# arm below reads the first request number in it, which is the one
# request release-plz maintains, and reads none where it opened none.
- name: release-pr
id: release-pr
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
set -eu
output="$(RK_DEV_RUN release-plz release-pr --git-token "$GITHUB_TOKEN" --repo-url "https://github.com/$GITHUB_REPOSITORY" -o json)"
printf '%s\n' "$output"
printf 'pr=%s\n' "$(printf '%s' "$output" | tr -d '\n')" >> "$GITHUB_OUTPUT"