From c263b1cca12949fb6307da00540df0d528dab18a Mon Sep 17 00:00:00 2001 From: Jiang Xin Date: Fri, 16 Feb 2024 11:10:16 +0800 Subject: [PATCH] debug: ci: s/pull_request_target/pull_request/ Signed-off-by: Jiang Xin --- .github/workflows/l10n.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index 6d3ae9daf18808..8eb9c2ba691df5 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -1,6 +1,6 @@ name: git-l10n -on: [push, pull_request_target] +on: [push, pull_request] # Avoid unnecessary builds. Unlike the main CI jobs, these are not # ci-configurable (but could be). @@ -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 }}