Sync OSCAR 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: Sync OSCAR Submodule | |
| on: | |
| repository_dispatch: | |
| types: [oscar-updated] | |
| schedule: | |
| - cron: "0 6 * * 1" # Weekly Monday 6am UTC as fallback | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Update OSCAR submodule | |
| run: | | |
| git submodule update --remote oscar | |
| echo "Updated OSCAR submodule to $(git -C oscar rev-parse --short HEAD)" | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: "sync: update OSCAR submodule to latest" | |
| title: "sync: update OSCAR submodule to latest" | |
| body: | | |
| Automated update of the OSCAR submodule to track latest changes. | |
| Triggered by: ${{ github.event_name }} | |
| branch: sync/oscar-submodule | |
| labels: sync | |
| delete-branch: true |