Skip to content

Commit

Permalink
fixup! meta: prepare release workflow for 3.x versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 21, 2024
1 parent 5ca41d7 commit c7a9b51
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
uses: actions/checkout@v4
with:
branch: release-3.x
- name: Rebase
run: |
git fetch origin 3.x --depth=1
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git rebase FETCH_HEAD
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run:
Expand Down Expand Up @@ -59,8 +65,6 @@ jobs:
echo "This is a release candidate for the following packages:" >> commitMessage
echo >> commitMessage
jq -r 'map("- `"+.ident+"`: "+.oldVersion+" -> "+.newVersion) | join("\n") ' < releases.json >> commitMessage
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git commit -n --amend --file commitMessage
- name: Open Pull Request
id: pr_opening
Expand All @@ -70,7 +74,7 @@ jobs:
-F base="$RELEASE_LINE_BRANCH" \
-F head="release-candidate" \
-F title="$(head -1 commitMessage)" \
-F body="$(git --no-pager show --color=never --unified=0 HEAD -- CHANGELOG.md | awk '{ if( substr($0,0,1) == "+" && $1 != "+##" && $1 != "+Released:" && $1 != "+++" ) { print substr($0,2) } }')" \
-F body="$(git --no-pager diff HEAD^ -- CHANGELOG.md | awk '{ if( substr($0,0,1) == "+" && $1 != "+##" && $1 != "+Released:" && $1 != "+++" ) { print substr($0,2) } }')" \
--jq '.number | tostring | "pr_number="+.' >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c7a9b51

Please sign in to comment.