Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
SistemaRayoXP committed Jan 3, 2025
1 parent 35732bd commit 2bcb97a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/update_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Configure Python 3.13
uses: actions/setup-python@v2
with:
Expand All @@ -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
Expand Down

0 comments on commit 2bcb97a

Please sign in to comment.