Skip to content

Commit

Permalink
ci, bug: fix release notification and github artifact naming
Browse files Browse the repository at this point in the history
  • Loading branch information
realRobotix committed Dec 14, 2024
1 parent cde4160 commit 299b1c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: read_properties
with:
path: gradle.properties
properties: mod.version minecraft_version archives_base_name
properties: mod.id mod.version

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: read_properties
with:
path: gradle.properties
properties: mod.version mod.id
properties: mod.id mod.version

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: read_properties
with:
path: gradle.properties
properties: mod_version minecraft_version enabled_platforms archives_base_name
properties: mod.id mod.version

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if: env.DISCORD_WEBHOOK != ''
run: |
curl -H "Content-Type: application/json" -X POST -d '{"content": null, "embeds": [{"title": "Building new release: ${{ steps.read_properties.outputs.mod_version }}", "color": null}], "attachments": []}' $DISCORD_WEBHOOK
curl -H "Content-Type: application/json" -X POST -d '{"content": null, "embeds": [{"title": "Building new release: ${{ steps.read_properties.outputs.mod.version }}", "color": null}], "attachments": []}' $DISCORD_WEBHOOK
- name: Send built file to discord
env:
Expand Down

0 comments on commit 299b1c3

Please sign in to comment.