-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #632 from Team-EnderIO/experiment/kotlin-gradle
Experiment: Convert gradle to Kotlin
- Loading branch information
Showing
8 changed files
with
605 additions
and
502 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 |
---|---|---|
|
@@ -44,15 +44,22 @@ jobs: | |
build/libs/*.jar | ||
!build/libs/*-partial.jar | ||
- name: Get Minecraft Version | ||
uses: madhead/read-java-properties@latest | ||
id: mc_version | ||
with: | ||
file: gradle.properties | ||
property: minecraft_version | ||
|
||
- name: Discord Notification Success | ||
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }} | ||
embed-title: New Nightly Build | ||
embed-title: New Nightly Build for ${{ steps.mc_version.outputs.value }} | ||
embed-description: A new nightly build of Ender IO has been built from the following commit. If you play with this, please remember to report issues! ```${{ github.event.head_commit.message }}``` | ||
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/enderface.png | ||
username: Ender IO Nightowl | ||
embed-footer-text: Build number ${{ github.run_number }} | ||
embed-footer-text: Build number ${{ github.run_number }} for MC ${{ steps.mc_version.outputs.value }} | ||
embed-url: https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/nightly-build.zip # NOTE: Must match "name" of the artifact as set above. | ||
embed-color: 5763719 | ||
|
||
|
@@ -61,10 +68,10 @@ jobs: | |
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }} | ||
embed-title: Nightly Build Failed | ||
embed-title: Nightly Build Failed for ${{ steps.mc_version.outputs.value }} | ||
embed-description: The nightly build failed to compile at this commit. ```${{ github.event.head_commit.message }}``` | ||
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/gray-enderface.png | ||
username: Ender IO Nightowl | ||
embed-footer-text: Build number ${{ github.run_number }} | ||
embed-footer-text: Build number ${{ github.run_number }} for MC ${{ steps.mc_version.outputs.value }} | ||
embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
embed-color: 15548997 |
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 |
---|---|---|
|
@@ -62,15 +62,22 @@ jobs: | |
stringToTruncate: ${{ github.event.release.body }} | ||
maxLength: 1000 | ||
|
||
- name: Get Minecraft Version | ||
uses: madhead/read-java-properties@latest | ||
id: mc_version | ||
with: | ||
file: gradle.properties | ||
property: minecraft_version | ||
|
||
- name: Discord Notification Success | ||
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.RELEASE_DISCORD_WEBHOOK }} | ||
embed-title: Ender IO ${{ github.event.release.tag_name }} Released | ||
embed-title: Ender IO ${{ github.event.release.tag_name }} Released for MC ${{ steps.mc_version.outputs.value }} | ||
embed-description: ${{ steps.truncatedChangelog.outputs.string }} | ||
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/enderface.png | ||
username: Ender IO Releases | ||
embed-footer-text: ${{ github.event.release.tag_name }} | ||
embed-footer-text: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }} | ||
embed-url: ${{ github.event.release.html_url }} | ||
embed-color: 5763719 | ||
|
||
|
@@ -79,11 +86,11 @@ jobs: | |
uses: tsickert/[email protected] | ||
with: | ||
webhook-url: ${{ secrets.PRIVATE_DISCORD_WEBHOOK }} | ||
embed-title: ${{ github.event.release.tag_name }} build failed | ||
embed-title: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }} build failed | ||
embed-description: The release build is failing at this commit. ```${{ github.event.head_commit.message }}``` | ||
avatar-url: https://raw.githubusercontent.com/Team-EnderIO/EnderIO/dev/1.20.1/doc/img/gray-enderface.png | ||
username: Ender IO Release Failure | ||
embed-footer-text: ${{ github.event.release.tag_name }} | ||
embed-footer-text: ${{ github.event.release.tag_name }} for MC ${{ steps.mc_version.outputs.value }} | ||
embed-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
embed-color: 15548997 | ||
|
||
|
Oops, something went wrong.