diff --git a/.github/workflows/translate-credits.yml b/.github/workflows/translate-credits.yml new file mode 100644 index 000000000..74fbb97a5 --- /dev/null +++ b/.github/workflows/translate-credits.yml @@ -0,0 +1,25 @@ +name: Prepare translation credits + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + release-notes: + if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'weblate') + 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.1.0 + + - name: Show translator credits + run: | + printf '%s\n' "${{ steps.translator-credits.outputs.credits }}"