[AUTO] Sync workflows from demo to main

This commit is contained in:
CICD Bot
2026-03-06 09:16:40 +00:00
parent 4bf4898e6a
commit fb7d0078c6

View File

@@ -97,3 +97,17 @@ jobs:
php artisan view:cache
"
docker exec star-cloud-demo-laravel chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
- name: Step 5 - Auto Sync workflows to main
run: |
git config --global user.email "bot@taiwan-star.com.tw"
git config --global user.name "CICD Bot"
git fetch origin main
git checkout main
git checkout ${{ github.ref_name }} -- .gitea/workflows/
if ! git diff --cached --quiet; then
git commit -m "[AUTO] Sync workflows from ${{ github.ref_name }} to main"
GIT_SSH_COMMAND="ssh -p 3222 -o StrictHostKeyChecking=no" git push origin main
fi
git checkout ${{ github.ref_name }}