chore(external): weekly sync of external skills from upstream (#8) #82
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload Skills to Google Drive | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'custom/**' | |
| - 'external/**' | |
| - 'gem/**' | |
| workflow_dispatch: | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up rclone | |
| uses: firstsun-dev/.github/actions/setup-rclone@main | |
| with: | |
| gdrive_client_id: ${{ secrets.GDRIVE_CLIENT_ID }} | |
| gdrive_client_secret: ${{ secrets.GDRIVE_CLIENT_SECRET }} | |
| gdrive_token: ${{ secrets.GDRIVE_TOKEN }} | |
| gdrive_folder_id: ${{ secrets.GDRIVE_FOLDER_ID }} | |
| - name: Sync custom/, external/, and gem/ to Google Drive | |
| run: | | |
| rclone sync custom/ "gdrive:custom/" --progress --delete-after --delete-excluded | |
| rclone sync external/ "gdrive:external/" --progress --delete-after --delete-excluded | |
| rclone sync gem/ "gdrive:gem/" --progress --delete-after --delete-excluded | |
| - name: Verify sync | |
| run: | | |
| rclone check custom/ "gdrive:custom/" --size-only | |
| rclone check external/ "gdrive:external/" --size-only | |
| rclone check gem/ "gdrive:gem/" --size-only |