Skip to content

Commit

Permalink
updated script to take in args
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkfman committed Jun 28, 2024
1 parent bb5e0e2 commit 682fb7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
13 changes: 11 additions & 2 deletions .github/scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ set -e
set -u
set -o pipefail

NEW_VERSION="${1}"
RELEASE_BRANCH_PREFIX="release/"
PREVIOUS_VERSION="${1}"
NEW_VERSION="${2}"
RELEASE_BRANCH_PREFIX="test-release/"

if [[ -z $NEW_VERSION ]]; then
echo "Error: No new version specified."
Expand Down Expand Up @@ -33,3 +34,11 @@ gh pr create \
--title "${NEW_VERSION}" \
--body "${RELEASE_BODY}" \
--head "${RELEASE_BRANCH_NAME}";

node ./generate-rc-commits.mjs "${PREVIOUS_VERSION}" "${RELEASE_BRANCH_NAME}"

./changelog-csv.sh

git commit -am "updated changelog and generated feature test plan"

git push "${RELEASE_BRANCH_NAME}"
9 changes: 1 addition & 8 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./scripts/create-release-pr.sh ${{ github.event.inputs.semver-version }}
- name: Create Changelog
id: create-changelog
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node ./scripts/generate-rc-commits.js v7.24.0 ${{ github.event.inputs.semver-version }} && ./scripts/changelog-csv.sh
./scripts/create-release-pr.sh ${{ github.event.inputs.previous-version-tag }} ${{ github.event.inputs.semver-version }}

0 comments on commit 682fb7a

Please sign in to comment.