-
Notifications
You must be signed in to change notification settings - Fork 183
48 lines (40 loc) · 1.06 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
name: Release Action
on:
release:
types:
- published
- created
- edited
- released
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_COMMIT }}
jobs:
test-action:
runs-on: ubuntu-latest
name: Update Release
steps:
- name: Check Token
if: env.GH_TOKEN == ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
ref: '3.x'
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Update RELEASES.MD
uses: vonage/[email protected]
- name: Commit release
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