From 199a2ff11a7d7cbaf05e097d3642d8542221760d Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Wed, 26 Feb 2025 14:17:15 +0100 Subject: [PATCH] ci: fix translation extraction for external PRs (#13266) --- .github/workflows/translation-extract-compile.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/translation-extract-compile.yml b/.github/workflows/translation-extract-compile.yml index eb5267c728..0f09e42a1c 100644 --- a/.github/workflows/translation-extract-compile.yml +++ b/.github/workflows/translation-extract-compile.yml @@ -19,13 +19,17 @@ jobs: runs-on: ubuntu-latest steps: - id: generate_token + if: ${{ github.event_name != 'pull_request' }} uses: tibdex/github-app-token@v2 with: app_id: ${{ secrets.GH_APP_ID }} private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} - uses: actions/checkout@v4 + if: ${{ github.event_name != 'pull_request' }} with: token: ${{ steps.generate_token.outputs.token }} + - uses: actions/checkout@v4 + if: ${{ github.event_name == 'pull_request' }} - name: Setup authentik env uses: ./.github/actions/setup - name: run extract