Skip to content

Commit

Permalink
ci: use a new action in the unstable-release job
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dlachaume committed Oct 15, 2024
1 parent 47cdaea commit 3c46682
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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')
Expand Down

0 comments on commit 3c46682

Please sign in to comment.