Skip to content

Updated medcat service. #394

Updated medcat service.

Updated medcat service. #394

name: submodules-sync
on:
push:
branches: [master, devel]
pull_request:
branches: [master, devel]
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync:
name: 'Submodules Sync'
runs-on: ubuntu-latest
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ github.token }}
submodules: true
# Update references
- name: Git Sumbodule Update
run: |
git config pull.rebase false
git pull --recurse-submodules origin master
git submodule update --remote --recursive
- name: Commit update
run: |
git config --global user.name 'Git bot'
git config --global user.email 'bot@noreply.github.com'
git remote set-url origin https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit"