-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update release action to not create the release branch but just open …
…the PR
- Loading branch information
Showing
1 changed file
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,31 +15,36 @@ fi | |
|
||
RELEASE_BRANCH_NAME="${RELEASE_BRANCH_PREFIX}${NEW_VERSION}" | ||
CHANGELOG_BRANCH_NAME="chore/${NEW_VERSION}-Changelog" | ||
RELEASE_BODY="This is the release candidate for version ${NEW_VERSION}. The changelog will be found in another PR ${CHANGELOG_BRANCH_NAME}." | ||
RELEASE_BODY="This is the release candidate for version ${NEW_VERSION}. The changelog will be found in another PR ${CHANGELOG_BRANCH_NAME}. | ||
# Team sign-off checklist | ||
- [] team-security | ||
- [] team-platform | ||
- [] team-snaps-platform | ||
- [] team-sdk | ||
- [] team-assets | ||
- [] team-notifications | ||
- [] team-confirmations | ||
- [] team-design-system | ||
- [] team-tiger | ||
- [] team-wallet-framework | ||
- [] team-stake | ||
- [] team-accounts | ||
# Reference | ||
- Testing plan sheet - https://docs.google.com/spreadsheets/d/1tsoodlAlyvEUpkkcNcbZ4PM9HuC9cEM80RZeoVv5OCQ/edit?gid=404070372#gid=404070372" | ||
|
||
git config user.name metamaskbot | ||
git config user.email [email protected] | ||
|
||
git checkout -b "${RELEASE_BRANCH_NAME}" | ||
|
||
if ! (git add . && git commit -m "${NEW_VERSION}"); | ||
then | ||
echo "Error: No changes detected." | ||
exit 1 | ||
fi | ||
|
||
git push --set-upstream origin "${RELEASE_BRANCH_NAME}" | ||
|
||
gh pr create \ | ||
--draft \ | ||
--title "feat: ${NEW_VERSION}" \ | ||
--body "${RELEASE_BODY}" \ | ||
--head "${RELEASE_BRANCH_NAME}"; | ||
|
||
|
||
git checkout -b "${CHANGELOG_BRANCH_NAME}" | ||
|
||
|
||
#Generate changelog and test plan csv | ||
node ./scripts/generate-rc-commits.mjs "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}" | ||
./scripts/changelog-csv.sh "${RELEASE_BRANCH_NAME}" | ||
|