File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Crowdin pull to GitHub
1+ name : Crowdin pull and merge
22
33on :
44 schedule :
3737 run : |
3838 git checkout -B crowdin
3939 git push --force origin crowdin
40+
41+ merge :
42+ name : Squash merge Crowdin into Dev
43+ if : github.event_name == 'workflow_dispatch'
44+ needs : pull
45+ permissions :
46+ contents : write
47+ runs-on : ubuntu-latest
48+ steps :
49+ # Step 1: Checkout dev branch
50+ - name : Checkout dev
51+ uses : actions/checkout@v5
52+ with :
53+ ref : dev
54+ fetch-depth : 0
55+ clean : true
56+
57+ # Step 2: Fetch the latest crowdin branch
58+ - name : Fetch crowdin branch
59+ run : git fetch origin crowdin
60+
61+ # Step 3: Squash merge crowdin into dev
62+ - name : Squash merge crowdin into dev
63+ run : |
64+ git config --local user.name "Crowdin Bot"
65+ git config --local user.email "support+bot@crowdin.com"
66+ git merge --squash origin/crowdin
67+ git commit --allow-empty -m "chore: Update translations from Crowdin"
68+ git push origin dev
You can’t perform that action at this time.
0 commit comments