This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Update Kuzu #169
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: Update Kuzu | |
| on: | |
| schedule: | |
| - cron: "0 8 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch name for kuzu, if not provided, it will use the master branch' | |
| type: string | |
| default: 'master' | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| jobs: | |
| create-new-version: | |
| name: Create New Version Branch | |
| runs-on: macos-14 | |
| env: | |
| KUZU_BRANCH: ${{ github.event.inputs.branch }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set Kuzu branch | |
| run: | | |
| if [ -z "${{ env.KUZU_BRANCH }}" ]; then | |
| echo "KUZU_BRANCH=master" >> $GITHUB_ENV | |
| fi | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "${GITHUB_ACTOR}" | |
| git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| - name: Update Kuzu | |
| working-directory: Scripts/update-kuzu | |
| run: python3 update-kuzu.py | |
| - name: Create Pull Request | |
| id: create-pr | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| title: "Update Kuzu from branch ${{env.KUZU_BRANCH}}" | |
| body: "This PR updates Kuzu from branch ${{env.KUZU_BRANCH}}." | |
| base: main | |
| labels: autoupdate | |
| draft: false | |
| commit-message: "Update Kuzu from branch ${{env.KUZU_BRANCH}}" | |
| branch-suffix: timestamp | |
| token: ${{ secrets.DOC_PUSH_TOKEN }} | |
| - name: Enable Auto-merge | |
| if: steps.create-pr.outputs.pull-request-number | |
| run: | | |
| gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} \ | |
| --auto \ | |
| --squash | |
| env: | |
| GH_TOKEN: ${{ secrets.DOC_PUSH_TOKEN }} | |
| - name: Approve Pull Request | |
| if: steps.create-pr.outputs.pull-request-number | |
| run: | | |
| gh pr review ${{ steps.create-pr.outputs.pull-request-number }} \ | |
| --approve \ | |
| --body "Auto-approved by workflow" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |