-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 984 Bytes
/
sync_submodule.yml
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
name: Sync Submodule
on:
schedule:
- cron: '0 0 * * *' # Run at midnight every day
workflow_dispatch: # Allow manual triggering
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Update submodule
run: |
git submodule update --remote --recursive
git config user.name github-actions
git config user.email github-actions@github.com
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v3
with:
title: 'Update libuiohook submodule'
body: 'This PR updates the libuiohook submodule to the latest version.'
branch: update-libuiohook-submodule
labels: submodule-update