Skip to content

Commit

Permalink
fixup! fixup! build: add create release proposal action
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Nov 5, 2024
1 parent b6664a2 commit 8fa22ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ permissions:

jobs:
env:
STAGING_BRANCH: v${{ inputs.release-line }}.x-staging
RELEASE_BRANCH: v${{ inputs.release-line }}.x
RELEASE_DATE: ${{ inputs.release-date }}
releasePrepare:
runs-on: ubuntu-latest
steps:
Expand All @@ -41,7 +38,6 @@ jobs:
# Needs the whole git history for ncu to work
# See https://github.com/nodejs/node-core-utils/pull/486
fetch-depth: 0
token: ${{ secrets.GH_USER_TOKEN }}

# Install dependencies
- name: Install Node.js
Expand All @@ -56,10 +52,13 @@ jobs:
run: |
echo "REPOSITORY=$(echo ${{ github.repository }} | cut -d/ -f2)" >> $GITHUB_ENV
echo "OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
echo "STAGING_BRANCH=v${{ inputs.release-line }}.x-staging" >> $GITHUB_ENV
echo "RELEASE_BRANCH=v${{ inputs.release-line }}.x" >> $GITHUB_ENV
echo "RELEASE_DATE=${{ inputs.release-date }}" >> $GITHUB_ENV
- name: Configure @node-core/utils
run: |
ncu-config set branch ${{ env.RELEASE_BRANCH }}
ncu-config set branch "${RELEASE_BRANCH}"
ncu-config set upstream origin
ncu-config set username "$USERNAME"
ncu-config set token "$GH_TOKEN"
Expand All @@ -72,4 +71,5 @@ jobs:
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}

- name: Start git node release prepare
run: ./tools/actions/create-release.sh ${{ inputs.RELEASE_DATE }}
run: |
./tools/actions/create-release.sh "${RELEASE_DATE}"
1 change: 0 additions & 1 deletion tools/actions/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ git node release --prepare --skipBranchDiff
# We use it to not specify the branch name as it changes based on
# the commit list (semver-minor/semver-patch)
git config push.default current
git push upstream
echo "/## $RELEASE_DATE/,/^<a id=/{ if (!/^<a id=/) print }" > temp.awk
awk -f temp.awk doc/changelogs/CHANGELOG_V23.md > pr-body.md
gh pr create --body-file pr-body.md
Expand Down

0 comments on commit 8fa22ec

Please sign in to comment.