name: bundle on: workflow_dispatch: schedule: - cron: "22 9 * * *" jobs: bundle: runs-on: [ubuntu-24.04] steps: - name: Checkout knoxmakers-inkscape (plain git) run: | set -euo pipefail rm -rf .git || true rm -rf ./* ./.??* || true git clone --depth 1 https://git.knoxmakers.org/KnoxMakers/knoxmakers-inkscape.git . git checkout main - name: Configure git identity run: | git config user.name "haxbot" git config user.email "haxbot@knoxmakers.sh" - name: Run bundle script run: | bash scripts/bundle.sh - name: Push (if bundle update commit was created) env: HAXBOT_TOKEN: ${{ secrets.HAXBOT_TOKEN }} run: | if git log -1 --pretty=%B | grep -q '^bundle: update'; then REPO_URL="https://x-access-token:${HAXBOT_TOKEN}@git.knoxmakers.org/KnoxMakers/knoxmakers-inkscape.git" git remote set-url origin "$REPO_URL" git push origin HEAD:main else echo "No update commit created." fi