Skip to content

Commit d91b752

Browse files
committed
wip:1 (4929t)
1 parent ed473c8 commit d91b752

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/create-release-branch.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Install dependencies
3535
run: yarn install --immutable
3636

37+
- name: Generate branch name
38+
run: echo "BRANCH=release/${{ inputs.version }}-$(cat /dev/urandom | tr -dc 'a-z0-9' | head -c 5)" >> $GITHUB_ENV
39+
3740
- name: Generate changelog
3841
env:
3942
CLAUDE_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -51,10 +54,10 @@ jobs:
5154
run: |
5255
git config user.name "webiny-bot"
5356
git config user.email "webiny-bot@webiny.com"
54-
git checkout -b "release/${{ inputs.version }}"
57+
git checkout -b "${{ env.BRANCH }}"
5558
git add .
5659
git commit -m "chore: generate changelog for ${{ inputs.version }}"
57-
git push origin "release/${{ inputs.version }}"
60+
git push origin "${{ env.BRANCH }}"
5861
5962
- name: Open pull request
6063
env:
@@ -63,5 +66,5 @@ jobs:
6366
gh pr create \
6467
--title "Release ${{ inputs.version }}" \
6568
--base master \
66-
--head "release/${{ inputs.version }}" \
69+
--head "${{ env.BRANCH }}" \
6770
--body "Release branch for Webiny ${{ inputs.version }}. Triggered by the [Full Release](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) workflow."

0 commit comments

Comments
 (0)