From 057696ac98e72eaacac155dd8d05dae11b250b94 Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sat, 17 Aug 2024 22:20:38 +0800 Subject: [PATCH] ci: set changelog for beta release --- .github/workflows/beta_release.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/beta_release.yml diff --git a/.github/workflows/beta_release.yml b/.github/workflows/beta_release.yml new file mode 100644 index 000000000000..35c5f7700022 --- /dev/null +++ b/.github/workflows/beta_release.yml @@ -0,0 +1,36 @@ +name: beta release + +on: + push: + branches: [ 'main' ] + +jobs: + release: + strategy: + matrix: + platform: [ ubuntu-latest ] + go-version: [ '1.21' ] + name: Beta Release Changelog + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: changelog # or changelogithub@0.12 if ensure the stable result + id: changelog + run: | + output=$(npx changelogithub --dry) + formatted_output="changelog=${output}" + echo "${formatted_output}" > "$GITHUB_OUTPUT" + env: + GITHUB_TOKEN: ${{secrets.MY_TOKEN}} + + - name: Prerelease + uses: irongut/EditRelease@v1.2.0 + with: + token: ${{ secrets.MY_TOKEN }} + id: 170718825 + prerelease: true + body: ${{ steps.changelog.outputs.changelog }}