Skip to content

Commit 912b304

Browse files
committed
Fix uninterpolated ${PR_ID} in autofix branch name
The `branch:` input to peter-evans/create-pull-request was set to `update-collections-${PR_ID}`, but Actions inputs aren't shell- interpolated and no `PR_ID` env var is defined — so the literal string `${PR_ID}` was ending up in the branch name (e.g. `update-collections-${PR_ID}`). peter-evans/create-pull-request is designed to reuse a stable branch: if an open PR already exists for that branch, it force-pushes new changes onto it instead of opening a new one. That's the desired behavior for an hourly autofix job — one rolling PR, not a new branch each hour. Drop the suffix entirely.
1 parent 3515fd3 commit 912b304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/collections-renames.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
with:
3636
commit-message: "✨ Autofixing renamed/removed collection items ✨"
3737
committer: "github-actions[bot] <actions@github.com>"
38-
branch: "update-collections-${PR_ID}"
38+
branch: update-collections
3939
title: "✨ Autofixing renamed/removed collection items ✨"

0 commit comments

Comments
 (0)