Skip to content

Update submodules_update.yml #2

Update submodules_update.yml

Update submodules_update.yml #2

name: Update Submodules
on:
# schedule:
# run daily at midnight
# - cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Uses the private access token from above link
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Initialize or update each one recursively
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
# Commit to the repo under the GitHub actions user to ensure we have
# reasonable logging to trace back
- name: Commit & push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions - update submodules"
git commit -am "Update submodules" || echo "No changes to commit"
checks:
needs: update
uses: ./.github/workflows/checks.yml

Check failure on line 35 in .github/workflows/submodules_update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/submodules_update.yml

Invalid workflow file

invalid value workflow reference: workflow file should have either a '.yml' or '.yaml' file extension
git push
push:
runs-on: ubuntu-latest
steps:
- name: Push
run: |
git push