Compare commits
No commits in common. "be81716cfeb7c23886918c458a2ddd193ba98e2e" and "662206f32f3d0a7368fe8e2a3ea0165b79b5b504" have entirely different histories.
be81716cfe
...
662206f32f
@ -13,8 +13,6 @@ on:
|
||||
env:
|
||||
REPO_USERNAME: Altarik
|
||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
||||
DISCORD_PUB_ID: ${{ secrets.DISCORD_PUB_ID }}
|
||||
DISCORD_PUB_TOKEN: ${{ secrets.DISCORD_PUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -16,7 +16,7 @@ String webhookId = getEnv("DISCORD_PUB_ID", local.getProperty("discord_pub_id"))
|
||||
String webhookToken = getEnv("DISCORD_PUB_TOKEN", local.getProperty("discord_pub_token"))
|
||||
String repoUrl = "https://repo.altarik.fr/#/" + (project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/') + project.group.replace(".", "/") + "/" + project.rootProject.name + "/" + project.version
|
||||
|
||||
var reportConfig = new ReportDiscord.ReportData("https://discord.com/api/", webhookId, webhookToken, project.rootProject.name, "Update " + project.version + " has been published", repoUrl);
|
||||
var reportConfig = new ReportDiscord.ReportData("https://discord.com/api/", webhookId, webhookToken, "Update " + project.version + " has been published", repoUrl);
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'maven-publish'
|
||||
|
@ -26,8 +26,7 @@ public abstract class ReportDiscord extends DefaultTask {
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
"title": "A new update of\s""" + data.projectName() + """
|
||||
is available",
|
||||
"title": "A new update for Toolbox is available",
|
||||
"description":\s""" + "\"" + message + "\"" + """
|
||||
,
|
||||
"url":\s""" + "\"" + data.url() + "\"" + """
|
||||
@ -49,7 +48,7 @@ public abstract class ReportDiscord extends DefaultTask {
|
||||
}
|
||||
}
|
||||
|
||||
public record ReportData(String baseUrl, String webhookId, String webhookToken, String projectName, String message, String url) {
|
||||
public record ReportData(String baseUrl, String webhookId, String webhookToken, String message, String url) {
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user