From 55f0e10f30605a3bf22d51db1296e2f034623adc Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Fri, 8 Sep 2023 20:19:02 +0000 Subject: [PATCH 1/2] Add Auto Release Workflow Signed-off-by: Sicheng Song --- .github/workflows/auto-release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 0000000000..45f433ccfd --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,28 @@ +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-anomaly-detection.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file From cbfa15974e2408b3559aae89fce3a70e0d325af2 Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Fri, 8 Sep 2023 20:33:41 +0000 Subject: [PATCH 2/2] Fix release note address Signed-off-by: Sicheng Song --- .github/workflows/auto-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 45f433ccfd..214283feeb 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -25,4 +25,4 @@ jobs: - uses: ncipollo/release-action@v1 with: github_token: ${{ steps.github_app_token.outputs.token }} - bodyFile: release-notes/opensearch-anomaly-detection.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file + bodyFile: release-notes/opensearch-ml-common.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file