Skip to content

Commit

Permalink
Setup Crowdin Synchronizer
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtnt committed Sep 16, 2023
1 parent 41cb217 commit 22818dc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/crowdin-synchronizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Trigger Crowdin Synchronizer

on:
push

jobs:
run:
if: ${{ github.repository_owner == 'huanghongxun' }}
runs-on: ubuntu-latest
steps:
- name: Post a message to Crowdin Synchronizer
run: |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $CROWDIN_SYNCHRONIZER_GITHUB_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/burningtnt/Crowdin-Synchronizer/actions/workflows/sync-translations/dispatches -d '{"ref":"master"}}'
env:
CROWDIN_SYNCHRONIZER_GITHUB_TOKEN: ${{ secrets.CROWDIN_SYNCHRONIZER_GITHUB_TOKEN }}

0 comments on commit 22818dc

Please sign in to comment.