#1017: Implemented a GH workflow(s) which validates correct target br… #2023
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: 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)" ] |