Skip to content

Commit d8f52c6

Browse files
committed
chore: create initial PR as draft before chlog entry is made
1 parent c31d5f7 commit d8f52c6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci-bump-component-versions.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ jobs:
135135
136136
echo "Updated PR #$pr_number"
137137
else
138-
echo "Creating new PR..."
138+
echo "Creating new draft PR..."
139139
gh pr create \
140+
--draft \
140141
--title "$pr_title" \
141142
--body "$pr_body" \
142143
--repo "${{ github.repository }}" \
@@ -156,7 +157,10 @@ jobs:
156157
157158
- name: Commit changelog entry
158159
if: ${{ !env.ACT && steps.bump_component_versions.outputs.has_changes == 'true' }}
160+
env:
161+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
159162
run: |
160163
git add .chloggen/
161164
git commit -S -m "chore: add changelog entry for otel component version bump"
162165
git push origin ${{ env.branch }}
166+
gh pr ready "${{ env.branch }}" --repo "${{ github.repository }}"

0 commit comments

Comments
 (0)