Enhance obfuscation workflow and asset processing: Updated the Gitea workflow to skip CI for specific commit messages, improving efficiency. Refactored the obfuscation script to include better asset handling, validation, and cleanup processes, ensuring only valid files are processed. Introduced temporary directories for intermediate files during obfuscation, enhancing reliability and reducing errors.

This commit is contained in:
smueller
2026-05-28 17:32:21 +02:00
parent 6c9114e0a7
commit 8f985da61f
3 changed files with 170 additions and 37 deletions

View File

@@ -7,13 +7,12 @@ on:
workflow_dispatch:
env:
# Gitea liefert intern oft eine IP; das SSL-Zertifikat gilt für den Hostnamen.
GITEA_HOST: git.hexahost.dev
REPO_PATH: smueller/HexaHost-Frontend
jobs:
obfuscate:
# Kein erneuter Lauf nach dem Bot-Commit
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
@@ -21,9 +20,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# Gitea liefert intern oft eine IP; Zertifikat gilt für git.hexahost.dev
repository-url: https://git.hexahost.dev/smueller/HexaHost-Frontend
- name: Skip loop commits
run: |
msg="$(git log -1 --pretty=%B)"
echo "Last commit message: $msg"
if echo "$msg" | grep -q "\[skip ci\]"; then
echo "Skip CI commit detected."
exit 0
fi
- name: Setup Python
uses: actions/setup-python@v5
with: