Add SirGitsalot to reviewers pool #850
Workflow file for this run
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: "Disallow submodules" | |
permissions: read-all | |
on: | |
pull_request | |
jobs: | |
disallow-submodules: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2 | |
- name: Check for submodules | |
run: | | |
output=$(git submodule status --recursive 2>&1) | |
if [ ! -z $output ]; then | |
echo $output | |
echo "Submodules are not allowed" | |
exit 1 | |
else | |
echo "No submodules found" | |
fi |