From 3c46682a046b1065902c29d8bab7afdf405a8015 Mon Sep 17 00:00:00 2001 From: Damien Lachaume <135982616+dlachaume@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:20:31 +0200 Subject: [PATCH] ci: use a new action in the `unstable-release` job This replaces the unmaintained `marvinpinto/action-automatic-releases` action and handles the update of the release body, previously done by the `tubone24/update_release` action. --- .github/workflows/ci.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b866477acc..5e4c66e7ee8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -588,24 +588,26 @@ jobs: gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }} compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "⛔", "testing-preview": "✔", "testing-sanchonet": "✔" }' + - name: Delete unstable release and associated tag + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if gh release view unstable -R ${{ github.repository }} &>/dev/null; then + gh release delete unstable --cleanup-tag -y -R ${{ github.repository }} + else + echo "Release 'unstable' not found, skipping deletion." + fi + - name: Update unstable release - uses: marvinpinto/action-automatic-releases@latest + uses: softprops/action-gh-release@v2 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - automatic_release_tag: unstable + token: ${{ secrets.GITHUB_TOKEN }} + tag_name: unstable prerelease: true - title: Unstable Development Builds + name: Unstable Development Builds files: package/* - - - name: Update unstable release body with release notes addon - # specific version since this action does not support giving only the major number - uses: tubone24/update_release@v1.3.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAG_NAME: unstable - with: - is_append_body: true body_path: ./release-notes-addon.txt + append_body: true deploy-testing: if: vars.DEPLOY_NETWORKS_IN_CI == 'true' && (github.event_name == 'push' || github.event_name == 'pull_request')