Skip to content

Update Submodules

Update Submodules #5

name: Update Submodules
on:
workflow_dispatch:
# schedule:
# - cron: '0 0 * * 1'
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update submodules
run: |
git submodule update --remote --recursive
- name: Commit & push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add AndroidLibXrayLite hev-socks5-tunnel
git diff --staged --quiet || git commit -m "core: update submodules"
git push