File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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."
You can’t perform that action at this time.
0 commit comments