Skip to content

Commit

Permalink
ci: use a new action in the create-pre-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 14, 2024
1 parent 0bc09f4 commit e8e634c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,15 @@ jobs:
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "✔", "testing-preview": "⛔", "testing-sanchonet": "⛔" }'

- name: Create pre-release ${{ github.ref_name }}
uses: marvinpinto/action-automatic-releases@latest
uses: softprops/action-gh-release@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }}
prerelease: true
title: Mithril v${{ github.ref_name }}
name: Mithril v${{ github.ref_name }}
files: package/*

- name: Update 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: ${{ github.ref_name }}
with:
is_append_body: true
body_path: ./release-notes-addon.txt
append_body: true

build-push-docker:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit e8e634c

Please sign in to comment.