-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35732bd
commit 2bcb97a
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure Python 3.13 | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
@@ -30,17 +30,24 @@ jobs: | |
git config --global user.name "[CI] Alfa" | ||
git config --global user.email "[email protected]" | ||
pip install lxml | ||
export BLACKLIST="downloads|mediaserver" | ||
- name: Start update | ||
- name: Collecting zips | ||
run: | | ||
# Updating | ||
echo "Entering Git repo directory" | ||
cd ${{ github.workspace }} | ||
export ADDON_ZIPS=$( { find . -maxdepth 2 -type f -name "*.zip" | grep -Ev "$BLACKLIST"; } ) | ||
BLACKLIST="downloads mediaserver" | ||
EXCLUDES="" | ||
for pattern in $BLACKLIST; do | ||
export EXCLUDES="$EXCLUDES -not -path \"./$pattern/*\""; | ||
done; | ||
export ADDON_ZIPS=$(eval "find . -maxdepth 2 -type f -name '*.zip' $EXCLUDES") | ||
echo "The following zips found" | ||
echo $ADDON_ZIPS | ||
- name: Generate repo and commit | ||
run: | | ||
echo "Updating repository" | ||
python create_repository.py $ADDON_ZIPS | ||
echo "Commiting..." | ||
git add . | ||
git commit -m "Updated addons.xml and md5's" | ||
git push | ||
|