fix: update catch translations actions (#40705)

* fix: update catch translations actions

* Update .github/workflows/no-prs-to-translation.yml
This commit is contained in:
Mrugesh Mohapatra
2021-01-15 18:58:01 +05:30
committed by Mrugesh Mohapatra
parent 2c190c5fff
commit d3149dc9ca

View File

@ -1,4 +1,4 @@
name: 'No changing translated files on GitHub' name: No translate on GitHub
on: on:
pull_request_target: pull_request_target:
branches: branches:
@ -10,9 +10,9 @@ on:
jobs: jobs:
has-translation: has-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps: steps:
- uses: actions/github-script@v3 - uses: actions/github-script@v3
if: github.event.pull_request.user.login != "github-actions[bot]"
with: with:
github-token: ${{secrets.GITHUB_TOKEN}} github-token: ${{secrets.GITHUB_TOKEN}}
script: | script: |