From b0f5c9b010056808f86c99bc82217efa88f72a3f Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Thu, 4 May 2023 16:56:18 +0200 Subject: [PATCH] ci: add workflow to redirect people to transifex when they only change translations Co-authored-by: Tana M Berry Signed-off-by: Marc 'risson' Schmitt --- .github/workflows/translation-advice.yml | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/translation-advice.yml diff --git a/.github/workflows/translation-advice.yml b/.github/workflows/translation-advice.yml new file mode 100644 index 000000000..cf418b481 --- /dev/null +++ b/.github/workflows/translation-advice.yml @@ -0,0 +1,34 @@ +name: authentik-translation-advice + +on: + pull_request: + branches: + - main + paths: + - "!**" + - "locale/**" + - "web/src/locales/**" + +jobs: + post-comment: + runs-on: ubuntu-latest + steps: + - name: Find Comment + uses: peter-evans/find-comment@v2 + id: fc + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: "github-actions[bot]" + body-includes: authentik translations instructions + - name: Create or update comment + uses: peter-evans/create-or-update-comment@v2 + with: + comment-id: ${{ steps.fc.outputs.comment-id }} + issue-number: ${{ github.event.pull_request.number }} + edit-mode: replace + body: | + ### authentik translations instructions + + Thanks for your pull request! + + authentik translations are handled using [Transifex](https://explore.transifex.com/authentik/authentik/). Please edit translations over there and they'll be included automatically.