1
0

41 lines
920 B
YAML
Raw Normal View History

name: Update Submodule
2024-06-18 17:34:05 +07:00
on:
repository_dispatch:
types:
- update-submodule
2024-06-18 17:34:05 +07:00
jobs:
update-submodule:
2024-06-18 17:34:05 +07:00
runs-on: ubuntu-latest
2024-06-18 17:34:05 +07:00
permissions:
contents: write
pull-requests: write
2024-06-18 17:34:05 +07:00
steps:
2024-06-18 17:34:05 +07:00
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
submodules: recursive
2024-06-18 17:34:05 +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
run: |
git submodule update --init --recursive --remote -f
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
2024-06-18 17:34:05 +07:00
- name: Commit Changes
run: |
2024-06-18 17:34:05 +07:00
git commit -am "chore(submodule): Update Translation Data"
git push origin main
env:
2024-06-18 17:34:05 +07:00
GITHUB_TOKEN: ${{ secrets.PAT }}