Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: add envsubst availability check
Install gettext-base if envsubst is not available on the runner.
While envsubst is typically present on ubuntu-latest, this adds
a safety net for the critical conflict-comment step.
  • Loading branch information
christian-byrne committed Dec 15, 2025
commit 478bcd8553233d50f26d002df9a80c3677000526
6 changes: 6 additions & 0 deletions .github/workflows/pr-backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@ jobs:
PR_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"

export PR_NUMBER PR_URL MERGE_COMMIT target BACKPORT_BRANCH CONFLICTS_INLINE

# envsubst is provided by gettext-base
if ! command -v envsubst >/dev/null 2>&1; then
sudo apt-get update && sudo apt-get install -y gettext-base
fi

AGENT_PROMPT=$(envsubst '${PR_NUMBER} ${PR_URL} ${target} ${MERGE_COMMIT} ${BACKPORT_BRANCH} ${CONFLICTS_INLINE}' <<<"$BACKPORT_AGENT_PROMPT_TEMPLATE")

COMMENT_BODY="### ⚠️ Backport to \`${target}\` failed"$'\n\n'
Expand Down