Update Dynamic Assets Submodule #1
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 Dynamic Assets Submodule | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| schedule: | |
| - cron: "10 10 * * *" # Runs at 10:10 am everyday | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-dynamic-assets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update submodule to latest main | |
| run: | | |
| cd dynamic_assets | |
| git fetch origin main | |
| git checkout origin/main | |
| cd ../.. | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| if git diff --quiet; then | |
| echo "has_changes=false" >> $GITHUB_OUTPUT | |
| echo "No submodule changes detected" | |
| else | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| echo "Submodule changes detected" | |
| fi | |
| - name: Create Pull Request | |
| if: steps.changes.outputs.has_changes == 'true' | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: "chore: update dynamic assets submodule" | |
| branch: update-dynamic-assets | |
| delete-branch: true | |
| title: "chore: Update dynamic assets submodule" | |
| body: | | |
| ## Changes | |
| - Updated `session-desktop-dynamic-assets` submodule to latest main | |
| This updates the cached service node data with the latest information. | |
| Auto-generated by workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |