Skip to content

Commit

Permalink
Add auto github release workflow (#691) (#827)
Browse files Browse the repository at this point in the history
* Add auto github release workflow

Signed-off-by: Angie Zhang <[email protected]>

* Fixed review comments

Signed-off-by: Angie Zhang <[email protected]>

* Fixed review comments

Signed-off-by: Angie Zhang <[email protected]>

---------

Signed-off-by: Angie Zhang <[email protected]>
(cherry picked from commit c751746)

Co-authored-by: Angie Zhang <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and Angie Zhang authored Jul 28, 2023
1 parent a7dc8c2 commit 07216b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Releases

on:
push:
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch-index-management.release-notes-${{steps.tag.outputs.tag}}.md

0 comments on commit 07216b5

Please sign in to comment.