-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
26 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Release Action | ||
|
||
on: | ||
|
@@ -8,6 +9,9 @@ on: | |
- edited | ||
- released | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GH_WIKI_PERSONAL_ACCESS_TOKEN }} | ||
|
||
jobs: | ||
test-action: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,35 +26,17 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Update RELEASES.MD | ||
uses: vonage/[email protected] | ||
|
||
- name: Release PR | ||
id: releasepr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GH_WIKI_PERSONAL_ACCESS_TOKEN }} | ||
add-paths: RELEASES.md | ||
commit-message: 'chore: updating release log' | ||
title: 'chore: updating release log' | ||
delete-branch: true | ||
branch: 'release-log' | ||
base: '3.x' | ||
|
||
- name: Debug | ||
run: echo ${{ steps.releasepr.outputs.pull-request-number }} | ||
|
||
- name: Approve PR | ||
uses: juliangruber/approve-pull-request-action@v2 | ||
with: | ||
number: ${{ steps.releasepr.outputs.pull-request-number }} | ||
|
||
- name: Merge PR | ||
uses: juliangruber/merge-pull-request-action@v1 | ||
with: | ||
merge-method: squash | ||
pr: ${{ steps.releasepr.outputs.pull-request-number }} | ||
- name: changelog | ||
run: | | ||
git config --local user.name github-actions | ||
git config --local user.email [email protected] | ||
git add RELEASES.md | ||
git commit -m "chore: updated release log" | ||
git push --force-with-lease |