diff --git a/.github/workflows/i18n-update-notify.yml b/.github/workflows/i18n-update-notify.yml index ed99935a3..1c389464c 100644 --- a/.github/workflows/i18n-update-notify.yml +++ b/.github/workflows/i18n-update-notify.yml @@ -1,7 +1,7 @@ name: i18n-update-notify on: - pull_request: + pull_request_target: branches: [develop] types: [closed] paths: ['src/livecodes/i18n/locales/**'] @@ -12,19 +12,16 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged && github.event.sender.login != 'github-actions[bot]' && !startsWith(github.head_ref, 'i18n/') steps: - - name: Check out repository - uses: actions/checkout@v4 - - - name: Create comment on PR - uses: actions/github-script@v6 - with: - script: | + - name: Create comment on PR + uses: actions/github-script@v6 + with: + script: | const commentBody = `## i18n Actions Source PR has been merged into the default branch. Maintainers can comment \`.i18n-update-push\` to trigger the i18n update workflow and push the changes to Lokalise. `; - + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner,