From def8fca33a8ec0f74e7f30023f067c2608f10420 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 11 Sep 2026 09:52:22 -0700 Subject: [PATCH 1/4] initial translatior credit workflow --- .github/workflows/contribute-credits.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/contribute-credits.yml diff --git a/.github/workflows/contribute-credits.yml b/.github/workflows/contribute-credits.yml new file mode 100644 index 000000000..e2eac4a42 --- /dev/null +++ b/.github/workflows/contribute-credits.yml @@ -0,0 +1,26 @@ +name: Prepare contributor credits + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + release-notes: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - id: translator-credits + uses: audiobookshelf/get-translator-credits@v1 + with: + token: ${{ github.token }} + + - name: Show translator credits + run: | + printf '%s\\n' "${{ steps.translator-credits.outputs.credits }}" From e4c69fe68baba8e7d2eac7a902f8ca67e01f32f3 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 11 Sep 2026 12:47:46 -0700 Subject: [PATCH 2/4] Update to latest version --- .github/workflows/contribute-credits.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contribute-credits.yml b/.github/workflows/contribute-credits.yml index e2eac4a42..aceff267e 100644 --- a/.github/workflows/contribute-credits.yml +++ b/.github/workflows/contribute-credits.yml @@ -8,6 +8,7 @@ on: jobs: release-notes: + if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'weblate') runs-on: ubuntu-latest permissions: contents: read @@ -17,10 +18,8 @@ jobs: fetch-depth: 0 - id: translator-credits - uses: audiobookshelf/get-translator-credits@v1 - with: - token: ${{ github.token }} + uses: audiobookshelf/get-translator-credits@v1.0.0 - name: Show translator credits run: | - printf '%s\\n' "${{ steps.translator-credits.outputs.credits }}" + printf '%s\n' "${{ steps.translator-credits.outputs.credits }}" From b204395b8e4fa93ad2c3c1217a2f41f4ec99a508 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 11 Sep 2026 12:50:14 -0700 Subject: [PATCH 3/4] Update name to translate-credits --- .../workflows/{contribute-credits.yml => translate-credits.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{contribute-credits.yml => translate-credits.yml} (94%) diff --git a/.github/workflows/contribute-credits.yml b/.github/workflows/translate-credits.yml similarity index 94% rename from .github/workflows/contribute-credits.yml rename to .github/workflows/translate-credits.yml index aceff267e..cb7a701d7 100644 --- a/.github/workflows/contribute-credits.yml +++ b/.github/workflows/translate-credits.yml @@ -1,4 +1,4 @@ -name: Prepare contributor credits +name: Prepare translation credits on: push: From 3c1bbc7f8e0ef12e4f8bbed3914ee0f1ac515e25 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 11 Sep 2026 13:45:30 -0700 Subject: [PATCH 4/4] Update workflow to cehck for new languages --- .github/workflows/translate-credits.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/translate-credits.yml b/.github/workflows/translate-credits.yml index cb7a701d7..74fbb97a5 100644 --- a/.github/workflows/translate-credits.yml +++ b/.github/workflows/translate-credits.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - id: translator-credits - uses: audiobookshelf/get-translator-credits@v1.0.0 + uses: audiobookshelf/get-translator-credits@v1.1.0 - name: Show translator credits run: |