diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release-binaries.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 57138342e5..8835844060 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -499,7 +499,9 @@ jobs: env: WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} run: | - jq -n \ - --arg content "## <@&1566184315178713190> Eglantine ${GITHUB_REF_NAME} build ${GITHUB_RUN_NUMBER} (${GITHUB_SHA::7})" \ + URL="https://github.com/${GITHUB_REPOSITORY}/releases/tag/build-${GITHUB_RUN_NUMBER}" + MSG=$(printf '## <@&1566184315178713190> Eglantine %s build %s (%s)\n%s' \ + "$GITHUB_REF_NAME" "$GITHUB_RUN_NUMBER" "${GITHUB_SHA::7}" "$URL") + jq -n --arg content "$MSG" \ '{content: $content, allowed_mentions: {roles: ["1566184315178713190"]}}' \ | curl -fsS -H "Content-Type: application/json" -d @- "$WEBHOOK" |
