Make sure no release contains thirdparty libraries

This commit is contained in:
Johannes Meyer 2023-10-27 09:51:08 +02:00
parent 47c9f08d58
commit 7919fb80b6
2 changed files with 32 additions and 0 deletions

26
.github/workflows/clean-vendor.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Clean Vendor Check
on:
push:
branches:
- stable/*
jobs:
check-vendor:
name: Clean Vendor Check
runs-on: ubuntu-latest
steps:
- name: Checkout code base
uses: actions/checkout@v3
- name: Check If Vendor Is Clean
run: |
files=`find vendor -maxdepth 1 -type d -not -name "ipl" -not -name "fortawesome" -not -name "composer" -not -name "vendor"`
if [ -z "$files" ]; then
echo "No unknown vendor files found";
exit 0;
else
echo "Found unknown vendor files: $files";
exit 1;
fi

View File

@ -53,6 +53,12 @@ rm -rf vendor
git checkout vendor
composer validate --no-check-all --strict || fail "Composer validate failed"
UNKNOWN_VENDOR_FILES=$(find vendor -maxdepth 1 -type d -not -name "ipl" -not -name "fortawesome" -not -name "composer" -not -name "vendor")
if [ -n "$UNKNOWN_VENDOR_FILES" ]; then
echo "Unknown vendor files found! DO NOT TAG!"
exit 1
fi
if [ -z "$NO_OPT" ]; then
git tag -a v$VERSION -m "Version v$VERSION"
echo "Finished, tagged v$VERSION"