From c44dcf86c3ef5b543a31d71cdffd8923cb80ab2d Mon Sep 17 00:00:00 2001 From: qwerty287 Date: Mon, 16 May 2022 18:26:35 +0200 Subject: [PATCH] Add Discord reporting to CI (#1140) The message is mainly copied from Gitea's message. Co-authored-by: qwerty287 Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1140 Reviewed-by: M M Arif Co-authored-by: qwerty287 Co-committed-by: qwerty287 --- .woodpecker/finish.yml | 21 +++++++++++++++++++++ .woodpecker/locale.yml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/finish.yml diff --git a/.woodpecker/finish.yml b/.woodpecker/finish.yml new file mode 100644 index 00000000..498e063c --- /dev/null +++ b/.woodpecker/finish.yml @@ -0,0 +1,21 @@ +depends_on: + - build + - locale + +run_on: [ success, failure ] +skip_clone: true + +pipeline: + discord: + image: appleboy/drone-discord + settings: + message: "{{#success build.status}} āœ… Build #{{build.number}} of `{{repo.name}}` succeeded.\n\nšŸ“ Commit by {{commit.author}}:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{else}} āŒ Build #{{build.number}} of `{{repo.name}}` failed.\n\nšŸ“ Commit by {{commit.author}}:\n``` {{commit.message}} ```\n\nšŸŒ {{ build.link }} {{/success}}\n" + webhook_id: + from_secret: + DISCORD_BOT_ID + webhook_token: + from_secret: + DISCORD_BOT_SECRET + when: + event: [ push ] + branch: main diff --git a/.woodpecker/locale.yml b/.woodpecker/locale.yml index 6d2799e3..f320e777 100644 --- a/.woodpecker/locale.yml +++ b/.woodpecker/locale.yml @@ -9,4 +9,4 @@ pipeline: when: event: [ push, tag ] branch: main - path: [ app/src/main/res/values/strings.xml, fastlane/metadata/android/en-US/*.txt ] + path: [ app/src/main/res/values/strings.xml, fastlane/metadata/android/en-US/*.txt, fastlane/metadata/android/en-US/changelogs/*.txt ]