[AUTO] Sync workflows from demo to main
This commit is contained in:
@@ -97,3 +97,17 @@ jobs:
|
|||||||
php artisan view:cache
|
php artisan view:cache
|
||||||
"
|
"
|
||||||
docker exec star-cloud-demo-laravel chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/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 }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user