Skip to content

Commit

Permalink
fix: release-to-staging create branch to act as a the PR head (#9359)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed Jan 18, 2024
1 parent 7c11b6a commit 3a7145e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/debug.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/release-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,14 @@ jobs:
CHANGES=$(perl -0777ne 'print "$1\n" and exit if m/\n##\s[^\n]*\n+(.*?\n)##?\s|$/gs;' CHANGELOG.md)
echo -e "${BACKLINK}\n\n${TEMPLATE}\n\n\n${CHANGES}" > BODY
export BODY=$(cat BODY)
git config user.name github-actions
git config user.email github-actions@github.com
git checkout -b "release/v${{ env.ACTION_VERSION }}"
git push --set-upstream origin "release/v${{ env.ACTION_VERSION }}"
gh pr create \
--assignee ${{ github.actor }} \
--base production \
--head v${{ env.ACTION_VERSION }} \
--head release/v${{ env.ACTION_VERSION }} \
--title "chore(release): Test v${{ env.ACTION_VERSION }}" \
--body "$BODY"
- name: Poll Staging Release
Expand Down

0 comments on commit 3a7145e

Please sign in to comment.