Skip to content

Commit

Permalink
Merge pull request #636 from live-codes/fix-workflow
Browse files Browse the repository at this point in the history
fix i18n-update-notify workflow
  • Loading branch information
hatemhosny authored Oct 5, 2024
2 parents faacc80 + 3b9dae0 commit d8d4c10
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/i18n-update-notify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: i18n-update-notify

on:
pull_request:
pull_request_target:
branches: [develop]
types: [closed]
paths: ['src/livecodes/i18n/locales/**']
Expand All @@ -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,
Expand Down

0 comments on commit d8d4c10

Please sign in to comment.