File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Sync OSCAR Submodule
2+
3+ on :
4+ repository_dispatch :
5+ types : [oscar-updated]
6+ schedule :
7+ - cron : " 0 6 * * 1" # Weekly Monday 6am UTC as fallback
8+ workflow_dispatch :
9+
10+ jobs :
11+ sync :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ pull-requests : write
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ submodules : true
22+ fetch-depth : 0
23+
24+ - name : Update OSCAR submodule
25+ run : |
26+ git submodule update --remote oscar
27+ echo "Updated OSCAR submodule to $(git -C oscar rev-parse --short HEAD)"
28+
29+ - name : Create Pull Request
30+ uses : peter-evans/create-pull-request@v7
31+ with :
32+ commit-message : " sync: update OSCAR submodule to latest"
33+ title : " sync: update OSCAR submodule to latest"
34+ body : |
35+ Automated update of the OSCAR submodule to track latest changes.
36+
37+ Triggered by: ${{ github.event_name }}
38+ branch : sync/oscar-submodule
39+ labels : sync
40+ delete-branch : true
You can’t perform that action at this time.
0 commit comments