-
Notifications
You must be signed in to change notification settings - Fork 94
56 lines (47 loc) · 1.8 KB
/
update-uthash.yml
File metadata and controls
56 lines (47 loc) · 1.8 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: Update uthash.h from submodule
on:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
workflow_dispatch: # Allow manual trigger
push:
paths:
- '.gitmodules'
- 'src/libltfs/uthash_submodule/**'
- '.github/workflows/update-uthash.yml'
jobs:
update-uthash:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update submodule to latest
run: |
cd src/libltfs/uthash_submodule
git fetch origin
git checkout master || git checkout main
git reset --hard origin/master || git reset --hard origin/main
cd ../../..
git add src/libltfs/uthash_submodule
- name: Check for changes
id: check_changes
run: |
git diff --cached --quiet || echo "changed=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.check_changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'chore: update uthash.h from upstream'
title: 'chore: update uthash.h from upstream'
body: |
Automated update of uthash.h from the official uthash repository.
This PR updates `src/libltfs/uthash.h` to the latest version from the uthash submodule.
**Changes:**
- Updated uthash submodule to latest commit
- Copied uthash.h from submodule to src/libltfs/
**Note:** The OOM handling macros are defined in `uthash_ext.h` and remain unchanged.
branch: automated/update-uthash
delete-branch: true
# Made with Bob