Repository navigation
56 lines (46 loc) · 1.69 KB
/
Copy pathsync-java-utils.yml
File metadata and controls
56 lines (46 loc) · 1.69 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Synchronize canonical Java utils
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: java-utils-aggregate-sync
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Check out aggregate
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Advance canonical direct utility pointers
shell: bash
run: |
set -euo pipefail
git submodule sync --recursive
git submodule update --init --remote
git submodule update --init --recursive
- name: Commit aggregate update
shell: bash
run: |
set -euo pipefail
if git diff --quiet --submodule=short -- . ':!.github/workflows/sync-java-utils.yml'; then
echo "Aggregate already matches all canonical direct Java utility main branches."
exit 0
fi
git config user.name "Tavall Java Utils Sync"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Changed: Synchronize canonical Java utils" \
-m "Reason:
- Keep the Tavall Studios utility aggregate aligned with authoritative direct Java utility repositories.
Changes:
- Advance changed direct Java utility submodule pointers to their canonical main revisions.
- Initialize nested descendants at revisions pinned by their owning aggregate.
Validation:
- Git submodule update completed successfully for every configured direct utility."
git push origin HEAD:main