Skip to content

Commit 6b7f6c1

Browse files
Add auto-release workflow (opensearch-project#1339)
Signed-off-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com>
1 parent 2506898 commit 6b7f6c1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.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/github-app-token@v1.5.0
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-security-dashboards-plugin.release-notes-${{steps.tag.outputs.tag}}.md

0 commit comments

Comments
 (0)