Skip to content

Update Laravel Source #71

Update Laravel Source

Update Laravel Source #71

name: Update Laravel Source
on:
schedule:
- cron: '0 0 * * 0' # Jalankan setiap minggu
workflow_dispatch:
jobs:
update_laravel:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clone Laravel Framework
run: git clone --depth 1 https://github.com/laravel/framework.git laravel-framework
- name: Remove old Illuminate files
run: rm -rf src/Illuminate
- name: Copy Laravel Source Files
run: php copyLaravelSrc.php
- name: List files after copy
run: ls -la src/Illuminate
- name: Check Git Status
run: git status
- name: Show Git Config
run: git config --list
- name: Commit and Push Changes
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GH_PAT}@github.com/NettixCode/Framework.git
git add src/Illuminate
git commit -m 'Update Laravel source files' || echo "No changes to commit"
git push origin main || echo "Git push failed"