-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.23 KB
/
manifest.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Update Manifest Header
on:
pull_request:
branches: ["development"]
paths:
- "data/RoveComm/manifest.json"
- "tools/RoveComm/parser.py"
- "src/RoveComm/RoveCommManifest.h"
- ".github/workflows/manifest.yml"
workflow_dispatch:
concurrency:
group: "manifest-generator"
cancel-in-progress: true
jobs:
update-manifest:
runs-on: ubuntu-latest
steps:
- name: Pull Repo
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup Git
run: |
git config user.name "MissouriMRDT"
git config user.email "[email protected]"
- name: Rebase Changes
run: |
git fetch origin ${{ github.head_ref }}
git rebase origin/${{ github.head_ref }}
- name: Generate Manifest
run: |
git branch
cd tools/RoveComm
python parser.py
- name: Commit Manifest
run: |
git add -f src/RoveComm/RoveCommManifest.h
git commit -m "** Automated - Manifest Update **" || echo "No changes to commit"
- name: Push Changes
run: |
git push origin HEAD:${{ github.head_ref }} --force-with-lease || echo "Failed to push changes"