Skip to content

Commit 9c2fbac

Browse files
Add Auto Release Workflow (#1306) (#1308)
* Add Auto Release Workflow Signed-off-by: Sicheng Song <[email protected]> * Fix release note address Signed-off-by: Sicheng Song <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit 8bd4158) Co-authored-by: Sicheng Song <[email protected]>
1 parent 058ec23 commit 9c2fbac

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/auto-release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: GitHub App token
15+
id: github_app_token
16+
uses: tibdex/[email protected]
17+
with:
18+
app_id: ${{ secrets.APP_ID }}
19+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
20+
installation_id: 22958780
21+
- name: Get tag
22+
id: tag
23+
uses: dawidd6/action-get-tag@v1
24+
- uses: actions/checkout@v2
25+
- uses: ncipollo/release-action@v1
26+
with:
27+
github_token: ${{ steps.github_app_token.outputs.token }}
28+
bodyFile: release-notes/opensearch-ml-common.release-notes-${{steps.tag.outputs.tag}}.md

0 commit comments

Comments
 (0)