Update build-ui.yml (#1446)

This commit is contained in:
Darrell 2024-12-11 16:05:11 -05:00 committed by GitHub
parent 49f25c69b8
commit 66cd590458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 9 deletions

View File

@ -38,27 +38,25 @@ jobs:
working-directory: ui working-directory: ui
run: npm run build run: npm run build
- name: Commit changes to PR - name: Check for changes
if: github.event_name == 'pull_request' id: check_changes
run: | run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add src/ui_*.h git add src/ui_*.h
git status --porcelain && git commit -m "chore: update UI build outputs" && git push || echo "No changes to commit" echo "changes=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
- name: Create Pull Request - name: Create Pull Request
if: github.event_name != 'pull_request' if: steps.check_changes.outputs.changes > '0'
uses: peter-evans/create-pull-request@v7 uses: peter-evans/create-pull-request@v7
with: with:
commit-message: 'chore: update UI build outputs' commit-message: 'chore: update UI build outputs'
title: 'Update UI build outputs' title: 'Update UI build outputs'
body: | body: |
This PR updates the UI build outputs (header files) based on changes in the UI source code. This PR updates the UI build outputs (header files) based on changes in the UI source code.
Changes were automatically generated by the UI build workflow. Changes were automatically generated by the UI build workflow.
branch: update-ui-build Original trigger: ${{ github.event_name }} ${{ github.ref }}
branch: update-ui-build-${{ github.sha }}
delete-branch: true delete-branch: true
base: master base: ${{ github.event.pull_request.head.ref || github.ref_name }}
add-paths: | add-paths: |
src/ui_*.h src/ui_*.h
labels: | labels: |