Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

on:
push:
branches:
- master
workflow_dispatch:
jobs:
update:
name: "Update client_files submodule"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
# Checkout the repository to the GitHub Actions runner
- uses: actions/checkout@v2
- name: Pull & update submodules recursively
run: |
cd iqmotion/clients/client_files
git checkout master
cd ..
- name: Commit
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions - update submodules"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push