diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 0c93da3ab14..370552aedeb 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -54,18 +54,10 @@ jobs: fzf 日本語拡張パッチ https://github.com/takumayokoo/fzf-jp-extension - - name: Delete previous releases - uses: sgpublic/delete-release-action@v1.1 + - uses: jay2610/delete-older-releases@1.0.0 with: - # repo: '/' # you can input a another repo here, defaults to current repo - release-drop: true - # The number of releases except the latest release reserved, "-1" means delete all, default is 0. - release-keep-count: -1 - release-drop-tag: false - pre-release-drop: true - pre-release-keep-count: -1 - pre-release-drop-tag: false - draft-drop: true - draft-drop-count: -1 + keep_latest: 1 + delete_type: 'release' + target_branch: 'master' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}