Skip to content

Commit

Permalink
Remove submodule and prevent future submodule additions (GoogleCloudP…
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath authored Sep 27, 2024
1 parent 2fdda66 commit 2aa3564
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/disallow-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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
2 changes: 1 addition & 1 deletion .github/workflows/repository-documentation-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
submodules: false # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repository-documentation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
submodules: false # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
Expand Down
1 change: 0 additions & 1 deletion magician-vcr-eap
Submodule magician-vcr-eap deleted from 489059

0 comments on commit 2aa3564

Please sign in to comment.