Skip to content

Commit eeb7fd4

Browse files
committed
fix: move direct commit to workflow, use bot
1 parent eb71946 commit eeb7fd4

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/gqm_update.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
generateDiagram:
1313
name: Generate Diagram
1414
runs-on: ubuntu-latest
15-
steps:
15+
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818
- name: Use Node.js
@@ -29,4 +29,10 @@ jobs:
2929
- run: sh ./scripts/gqm_gen/gqm_update.sh ./new_gqm.md.tmp ./measuring/use_gqm.md > ./measuring/use_gqm.md.tmp
3030
- run: rm -f ./new_gqm.md.tmp
3131
- run: mv -f ./measuring/use_gqm.md.tmp ./measuring/use_gqm.md
32-
- run: sh ./scripts/gqm_gen/gqm_commit.sh
32+
- name : Commit GQM Diagram
33+
working-directory: ./measuring
34+
run: |
35+
git config --local user.name "github-actions[bot]"
36+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
37+
git add .
38+
git diff --staged --quiet || (git commit -m "Update Goals Questions Metrics Graph" && git push)

scripts/gqm_gen/gqm_commit.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)