-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.02 KB
/
sync-osa-submodule.yml
File metadata and controls
40 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Sync OSA Submodule
on:
repository_dispatch:
types: [osa-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 OSA submodule
run: |
git submodule update --remote osa
echo "Updated OSA submodule to $(git -C osa rev-parse --short HEAD)"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "sync: update OSA submodule to latest"
title: "sync: update OSA submodule to latest"
body: |
Automated update of the OSA submodule to track latest changes.
Triggered by: ${{ github.event_name }}
branch: sync/osa-submodule
labels: sync
delete-branch: true