mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-02-13 17:10:08 +00:00
Cleaner pre-release messages (#1096)
Instead of showing all the content and just the latest commit, it will show the link to all the changes between the latest release and the pre-release
This commit is contained in:
parent
938b9b9826
commit
75166ecd2a
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -402,6 +402,15 @@ jobs:
|
|||
fi
|
||||
done
|
||||
|
||||
- name: Get latest release information
|
||||
id: get_latest_release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.SHADPS4_TOKEN_REPO }}
|
||||
run: |
|
||||
api_url="https://api.github.com/repos/${{ github.repository }}"
|
||||
latest_release_info=$(curl -H "Authorization: token $GITHUB_TOKEN" "$api_url/releases/latest")
|
||||
echo "last_release_tag=$(echo "$latest_release_info" | jq -r '.tag_name')" >> $GITHUB_ENV
|
||||
|
||||
- name: Create Pre-Release on GitHub
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
|
@ -411,8 +420,8 @@ jobs:
|
|||
tag: "Pre-release-shadPS4-${{ needs.get-info.outputs.date }}-${{ needs.get-info.outputs.shorthash }}"
|
||||
draft: false
|
||||
prerelease: true
|
||||
artifacts: |
|
||||
./artifacts/*.zip
|
||||
body: "Full Changelog: [${{ env.last_release_tag }}...${{ needs.get-info.outputs.shorthash }}](https://github.com/shadps4-emu/shadPS4/compare/${{ env.last_release_tag }}...${{ needs.get-info.outputs.shorthash }})"
|
||||
artifacts: ./artifacts/*.zip
|
||||
|
||||
- name: Get current pre-release information
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue