Files
knoxmakers-inkscape/.gitea/workflows/bundle.yml
2026-01-15 18:35:16 -05:00

40 lines
1.1 KiB
YAML

name: bundle
on:
workflow_dispatch:
schedule:
- cron: "22 9 * * *"
jobs:
bundle:
runs-on: [debian-13]
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