Skip to content

#1017: Implemented a GH workflow(s) which validates correct target br… #2023

#1017: Implemented a GH workflow(s) which validates correct target br…

#1017: Implemented a GH workflow(s) which validates correct target br… #2023

name: Check if .current_submodules is up to date
on:
push:
branches:
- master
- develop
pull_request:
jobs:
check_current_gitmodules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
- name: Run update_current_submodules_file.sh
run: bash githooks/update_current_submodules_file.sh
- name: Show changes on working copy
run: git status --porcelain=v1 -uno
- name: Show diff on working copy
run: git diff --cached; git diff --cached --summary;
- name: Show gitsubmodules status
run: git submodule status
- name: Check if .current_submodules file is changed
run: |
[ -z "$(git status --porcelain=v1 -uno 2>/dev/null)" ]