Update Submodules #38799
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Submodules | |
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: write-all | |
jobs: | |
Update-Submodules: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Pull down submodules | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git submodule update --init --recursive --remote | |
if [ -n "$(git status --porcelain)" ]; then | |
git add . | |
git commit -m "Update Pelican Submodule" | |
git push | |
else | |
echo "no changes"; | |
fi | |
Call-NextJS-Actions: | |
needs: Update-Submodules | |
uses: PelicanPlatform/docs/.github/workflows/nextjs.yml@main | |
secrets: inherit |