2024-06-15 00:22:11 +07:00
|
|
|
name: Update Submodule
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
types:
|
|
|
|
- update-submodule
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
jobs:
|
|
|
|
update-submodule:
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
runs-on: ubuntu-latest
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
steps:
|
2024-06-18 17:34:05 +07:00
|
|
|
- name: Checkout Repository
|
2024-06-15 00:22:11 +07:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.PAT }}
|
|
|
|
submodules: recursive
|
2024-06-18 17:34:05 +07:00
|
|
|
|
2024-06-15 00:22:11 +07:00
|
|
|
- name: Authorize Git
|
|
|
|
run: |
|
|
|
|
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
git config --global user.name "$GITHUB_ACTOR"
|
2024-06-18 17:34:05 +07:00
|
|
|
|
|
|
|
- name: Update Submodule
|
2024-06-15 00:22:11 +07:00
|
|
|
run: |
|
|
|
|
git submodule update --init --recursive --remote -f
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|
2024-06-18 17:34:05 +07:00
|
|
|
|
|
|
|
- name: Commit Changes
|
2024-06-15 00:22:11 +07:00
|
|
|
run: |
|
2024-06-18 17:34:05 +07:00
|
|
|
git commit -am "chore(submodule): Update Translation Data"
|
2024-06-15 00:22:11 +07:00
|
|
|
git push origin main
|
|
|
|
env:
|
2024-06-18 17:34:05 +07:00
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }}
|