From 6b19bd0f1870e901a84c508345c53a1ad8509f7e Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 19 Oct 2023 18:16:34 +0300 Subject: [PATCH] fix: allow merging forks pull requests the comment step is failing and causing pull requests from forks to be unmergeable --- .github/workflows/validate-translation-files.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/validate-translation-files.yml b/.github/workflows/validate-translation-files.yml index fedf014455f..4719045d4cf 100644 --- a/.github/workflows/validate-translation-files.yml +++ b/.github/workflows/validate-translation-files.yml @@ -38,10 +38,9 @@ jobs: # Due to GitHub Actions security reasons this will not work on fork pull requests. # This shouldn't be an issue, because bots writes directly to this repository. - name: Post translation validation results as a comment - if: always() + if: ${{ always() && ! github.event.pull_request.fork }} uses: mshick/add-pr-comment@7c0890544fb33b0bdd2e59467fbacb62e028a096 with: - issue-number: ${{ github.event.pull_request.number }} message: | :white_check_mark: All translation files are valid.