From ebfddc744b084d59d40f047f5d135cc61b439953 Mon Sep 17 00:00:00 2001 From: Daniil Date: Tue, 8 Feb 2022 23:14:37 +0300 Subject: [PATCH 1/2] ci: add notification, when english UI strings has been updated --- .github/workflows/notify_on_strings_update.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/notify_on_strings_update.yml diff --git a/.github/workflows/notify_on_strings_update.yml b/.github/workflows/notify_on_strings_update.yml new file mode 100644 index 0000000000..967a9fed8c --- /dev/null +++ b/.github/workflows/notify_on_strings_update.yml @@ -0,0 +1,14 @@ +name: Strings update +on: + push: + branches: main + paths: + - "frontend/app_flowy/assets/translations/en.json" +jobs: + # some way to send notification + - name: Notify in Discord + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: '@appflowytranslators English UI strings has been updated.' From d6409e58899c35b0c499156e4c0ba82efc37a270 Mon Sep 17 00:00:00 2001 From: Daniil Date: Tue, 8 Feb 2022 23:28:27 +0300 Subject: [PATCH 2/2] ci: add action when new release is published --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..7270dccf07 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,11 @@ +name: Release landed +on: + release: + types: [published] +jobs: + - name: Notify in Discord + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: '${{ github.event.tag_name }} is out 🚀 ${{ github.event.url }}\n${{ github.event.body }}' \ No newline at end of file