Update Manifest and Release Action #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |