From 8f7c1d6c9c60d193000b2aed309131cc417ff0a1 Mon Sep 17 00:00:00 2001 From: Angie Zhang Date: Fri, 17 Feb 2023 19:21:51 -0800 Subject: [PATCH 1/3] Add auto github release workflow Signed-off-by: Angie Zhang --- .github/workflows/auto-release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 000000000..af6c25f3a --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,21 @@ +name: Link Checker +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: lychee Link Checker + id: lychee + uses: lycheeverse/lychee-action@master + with: + args: --accept=200,403,429 **/*.html **/*.md **/*.txt **/*.json + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Fail if there were link errors + run: exit ${{ steps.lychee.outputs.exit_code }} \ No newline at end of file From f4dfe8869a4dd5cd098ed00cc6352e7bdb6dfc95 Mon Sep 17 00:00:00 2001 From: Angie Zhang Date: Fri, 17 Feb 2023 22:51:58 -0800 Subject: [PATCH 2/3] Fixed review comments Signed-off-by: Angie Zhang --- .github/workflows/auto-release.yml | 34 ++++++++++++++++++------------ 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index af6c25f3a..24eeb2730 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,21 +1,29 @@ -name: Link Checker +name: Releases + on: push: - branches: [ main ] - pull_request: - branches: [ main ] + tags: + - '*' jobs: - check: + + 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 - - name: lychee Link Checker - id: lychee - uses: lycheeverse/lychee-action@master + - uses: ncipollo/release-action@v1 with: - args: --accept=200,403,429 **/*.html **/*.md **/*.txt **/*.json - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Fail if there were link errors - run: exit ${{ steps.lychee.outputs.exit_code }} \ No newline at end of file + github_token: ${{ steps.github_app_token.outputs.token }} + bodyFile: release-notes/opensearch.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file From aee096501676b8873770585ccb3babcd42f43c0e Mon Sep 17 00:00:00 2001 From: Angie Zhang Date: Mon, 20 Feb 2023 09:10:45 -0800 Subject: [PATCH 3/3] Fixed review comments Signed-off-by: Angie Zhang --- .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 24eeb2730..dea080139 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -26,4 +26,4 @@ jobs: - uses: ncipollo/release-action@v1 with: github_token: ${{ steps.github_app_token.outputs.token }} - bodyFile: release-notes/opensearch.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file + bodyFile: release-notes/opensearch-index-management.release-notes-${{steps.tag.outputs.tag}}.md \ No newline at end of file