update #17
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
# Release script for Alfa Addon | |
name: update | |
on: | |
workflow_dispatch: | |
# Set permissions for GitHub key | |
permissions: write-all | |
jobs: | |
deploy: | |
name: Update repository | |
runs-on: ubuntu-latest | |
env: | |
GIT_USER_NAME: Alfa | |
GIT_USER_EMAIL: [email protected] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Configure Python 3.13 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.13' | |
- name: Set-up environment | |
run: | | |
git config --global user.name "[CI] Alfa" | |
git config --global user.email "[email protected]" | |
pip install lxml | |
- name: Collecting zips | |
run: | | |
echo "Entering Git repo directory" | |
cd ${{ github.workspace }} | |
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 | |
git add . | |
git commit -m "Updated addons.xml and md5's" | |
git push | |
echo "Update finished!" |