-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (29 loc) · 870 Bytes
/
release.yml
File metadata and controls
32 lines (29 loc) · 870 Bytes
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
name: Release
on:
push:
tags:
- 'v*'
jobs:
set-release-note:
name: Set Relase Note
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: npm install simple-git
- uses: actions/github-script@v3
id: create-release-note
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const script = require(`${process.env.GITHUB_WORKSPACE}/.github/script/prs.js`)
const path = `${process.env.GITHUB_WORKSPACE}`
return await script({github, path})
result-encoding: string
- name: Update Releasing Note
uses: softprops/action-gh-release@v1
with:
body: ${{steps.create-release-note.outputs.result}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}