Skip to content

Commit

Permalink
Try new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 12, 2019
1 parent 4e7b2f1 commit 05f454b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ task setupGithubActions() {
log = log + "[`" + commit.abbreviatedId + "`](https://github.com/itsmeow/betteranimalsplus/commit/" + commit.id + ") " + commit.shortMessage + " - " + commit.author.name + "\\n";
}
doLast {
//commandLine "echo", "##[set-output name=version;]${project.version}";
//commandLine "echo", "##[set-output name=commitlog;]" + "{\"content\":\"A new alpha is available!\",\"embed\":{\"author\":{\"name\":\"itsmeow\",\"url\":\"https://itsmeow.dev/\",\"icon_url\":\"https://itsmeow.dev/icon.png\"},\"title\":\"betteranimalsplus-alpha-${project.version}\",\"url\":\"https://github.com/itsmeow/betteranimalsplus/releases/tag/alpha-${project.version}\",\"color\":14700288,\"description\":\"" + log + "\"}}";
exec {
commandLine "echo", "##[set-output name=version;]${project.version}";
commandLine "echo", "##[set-output name=commitlog;]" + "{\"content\":\"A new alpha is available!\",\"embed\":{\"author\":{\"name\":\"itsmeow\",\"url\":\"https://itsmeow.dev/\",\"icon_url\":\"https://itsmeow.dev/icon.png\"},\"title\":\"betteranimalsplus-alpha-${project.version}\",\"url\":\"https://github.com/itsmeow/betteranimalsplus/releases/tag/alpha-${project.version}\",\"color\":14700288,\"description\":\"" + log + "\"}}";
}
}
}

Expand Down

0 comments on commit 05f454b

Please sign in to comment.