-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 | ||
|