Skip to content

Commit 89b7457

Browse files
authored
Add auto-release workflow (opensearch-project#376)
Signed-off-by: Craig Perkins <[email protected]>
1 parent a204fa4 commit 89b7457

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/auto-release.yml

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

0 commit comments

Comments
 (0)