diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index 1e0ce10ce9b4e4..f65e98fe45c193 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -21,7 +21,7 @@ jobs: - name: Setup base and head objects id: setup-tips run: | - if test "${{ github.event_name }}" = "pull_request_target" + if test "${{ github.event_name }}" = "pull_request" then base=${{ github.event.pull_request.base.sha }} head=${{ github.event.pull_request.head.sha }} @@ -94,7 +94,7 @@ jobs: uses: mshick/add-pr-comment@v2 if: >- always() && - github.event_name == 'pull_request_target' && + github.event_name == 'pull_request' && env.COMMENT_BODY != '' with: repo-token: ${{ secrets.GITHUB_TOKEN }}