From 0db11a361ca768187759ff371ac8c79c8181f948 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 8 Aug 2023 05:20:26 +0000 Subject: [PATCH] Add auto release workflow (#97) Signed-off-by: Hailong Cui (cherry picked from commit 3e1a4d19c855f22e18965bdca737da0ef4cb5a0d) Signed-off-by: github-actions[bot] --- .github/workflows/auto-release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 00000000..45652c25 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -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/github-app-token@v1.5.0 + 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-dashboards-notifications.release-notes-${{steps.tag.outputs.tag}}.md