Sync Shaders #185
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: Sync Shaders | |
| on: | |
| schedule: | |
| # Runs at 00:00 UTC every day | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| # Allows manual triggering | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Update shader submodule | |
| run: | | |
| git submodule update --init --recursive --remote apps/nesium_flutter/assets/shaders | |
| - name: Create Pull Request | |
| id: create_pr | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "chore(deps): sync shaders submodule to latest" | |
| committer: GitHub <noreply@github.com> | |
| author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
| signoff: false | |
| branch: ci/auto-sync-shaders | |
| delete-branch: true | |
| title: "chore(deps): sync shaders submodule to latest" | |
| body: | | |
| Automated daily shader submodule synchronization. | |
| This PR updates the `apps/nesium_flutter/assets/shaders` submodule to the latest upstream commit. | |
| labels: | | |
| dependencies | |
| automated-pr | |
| - name: Enable auto-merge | |
| if: steps.create_pr.outputs.pull-request-number != '' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr merge --auto --squash "${{ steps.create_pr.outputs.pull-request-number }}" |