Skip to content

Merge pull request #45 from UMLCloudComputing/patchci3 #4

Merge pull request #45 from UMLCloudComputing/patchci3

Merge pull request #45 from UMLCloudComputing/patchci3 #4

Workflow file for this run

name: Fetch Submodules
on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight
push:
branches:
- main # Triggers on push to main branch
jobs:
fetch-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true # Fetches submodules
- name: Make submodule update script executable
run: chmod +x ./submodules_automation.sh
- name: Run submodule update script
run: ./submodules_automation.sh
- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit and push changes
run: |
git add .
git diff-index --quiet HEAD || git commit -m "Update submodules" && git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}