-
Notifications
You must be signed in to change notification settings - Fork 183
58 lines (48 loc) · 1.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release Action
on:
release:
types:
- published
- created
- edited
- released
env:
jobs:
test-action:
runs-on: ubuntu-latest
name: Update Release
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: '3.x'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup node
uses: actions/setup-node@v3
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 }}