Skip to content

Commit

Permalink
Update release format
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps authored Nov 11, 2024
1 parent fb14bb7 commit 96000bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ jobs:

- name: Generate release notes
run: |
echo "Last updated on **$(date -u +'%Y-%m-%d at %H:%M:%S %Z')**" > changelog.md
echo "Last updated on **$(date -u +'%d %b %Y at %H:%M:%S %Z')**" > changelog.md
echo -e "\n\n" >> changelog.md
echo "Built by: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> changelog.md
echo "Build number: ${{ github.run_number }}" >> changelog.md
if [[ "${{ github.ref_name }}" != "${{ github.event.repository.default_branch }}" ]]; then
echo -e "\n\n\n" >> changelog.md
if [[ "${{ github.ref_name }}" == *"preview" ]]; then
Expand All @@ -69,6 +70,11 @@ jobs:
echo -e "\n\n\n" >> changelog.md
echo ":information_source: **Linux/MacOS users**: Please see [this page](https://doc.pmmp.io/en/rtfd/faq/installation/opcache.so.html) to fix extension loading errors. Also, check out the [PocketMine-MP Linux/MacOS installer](https://doc.pmmp.io/en/rtfd/installation/get-dot-pmmp-dot-io.html)." >> changelog.md
- name: Get date
id: date
run: |
echo DATE=$(date -u +'%d %b %Y') >> $GITHUB_OUTPUT
- name: Update latest branch release
uses: ncipollo/[email protected]
with:
Expand All @@ -77,7 +83,7 @@ jobs:
${{ github.workspace }}/MacOS-*-PM*/*.tar.gz
${{ github.workspace }}/Windows-PM*/*.zip
makeLatest: ${{ github.ref_name == github.event.repository.default_branch }}
name: PHP ${{ steps.version.outputs.PHP_VERSION }} - Latest (Build ${{ github.run_number }})
name: PHP ${{ steps.version.outputs.PHP_VERSION }} - Latest (${{ steps.date.outputs.DATE }})
tag: php-${{ steps.version.outputs.PHP_VERSION }}-latest
commit: ${{ github.sha }}
allowUpdates: true
Expand Down

0 comments on commit 96000bb

Please sign in to comment.