Copy stable to preview #10
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: Copy stable to preview | |
| on: | |
| schedule: | |
| - cron: "0 4 * * *" # run every day | |
| workflow_dispatch: | |
| jobs: | |
| CopyStableToArchive: | |
| if: github.repository == 'duckdb/duckdb-web' | |
| name: Copy stable to preview | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Run copy | |
| run: | | |
| pip install -r requirements.txt --break-system-packages | |
| python scripts/copy_stable_to_preview.py | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@v7.0.8 | |
| with: | |
| branch: update-preview-branch | |
| commit-message: "Copy stable to preview" | |
| title: "Automated PR: Copy stable to preview" | |
| body: "This PR was created automatically by GitHub Actions." |