mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-14 14:11:32 +01:00
9ef3b36aa6
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
32 lines
972 B
YAML
32 lines
972 B
YAML
name: submodule-update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 */8 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
image:
|
|
name: submodule-update
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout Code"
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.CI_TOKEN }}
|
|
repository: ${{ github.repository }}
|
|
submodules: 'recursive'
|
|
fetch-depth: 1
|
|
# Update references
|
|
- name: Git Sumbodule Update
|
|
run: |
|
|
git pull --recurse-submodules
|
|
git submodule update --remote --recursive
|
|
# Commit and push
|
|
- name: Commit update
|
|
run: |
|
|
git config --global user.name 'Bensuperpc'
|
|
git config --global user.email 'bensuperpc@gmail.com'
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
|
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"
|