Skip to content

Commit 3c46682

Browse files
committed
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.
1 parent 47cdaea commit 3c46682

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -588,24 +588,26 @@ jobs:
588588
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
589589
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "⛔", "testing-preview": "✔", "testing-sanchonet": "✔" }'
590590

591+
- name: Delete unstable release and associated tag
592+
env:
593+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
594+
run: |
595+
if gh release view unstable -R ${{ github.repository }} &>/dev/null; then
596+
gh release delete unstable --cleanup-tag -y -R ${{ github.repository }}
597+
else
598+
echo "Release 'unstable' not found, skipping deletion."
599+
fi
600+
591601
- name: Update unstable release
592-
uses: marvinpinto/action-automatic-releases@latest
602+
uses: softprops/action-gh-release@v2
593603
with:
594-
repo_token: ${{ secrets.GITHUB_TOKEN }}
595-
automatic_release_tag: unstable
604+
token: ${{ secrets.GITHUB_TOKEN }}
605+
tag_name: unstable
596606
prerelease: true
597-
title: Unstable Development Builds
607+
name: Unstable Development Builds
598608
files: package/*
599-
600-
- name: Update unstable release body with release notes addon
601-
# specific version since this action does not support giving only the major number
602-
uses: tubone24/[email protected]
603-
env:
604-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
605-
TAG_NAME: unstable
606-
with:
607-
is_append_body: true
608609
body_path: ./release-notes-addon.txt
610+
append_body: true
609611

610612
deploy-testing:
611613
if: vars.DEPLOY_NETWORKS_IN_CI == 'true' && (github.event_name == 'push' || github.event_name == 'pull_request')

0 commit comments

Comments
 (0)