|
3 | 3 | push:
|
4 | 4 | branches: [main]
|
5 | 5 | paths:
|
6 |
| - - 'measuring/goals/**' |
7 |
| - - 'measuring/questions/**' |
8 |
| - - 'measuring/metrics/**' |
| 6 | + - "measuring/goals/**" |
| 7 | + - "measuring/questions/**" |
| 8 | + - "measuring/metrics/**" |
9 | 9 |
|
10 | 10 | workflow_dispatch:
|
11 | 11 | jobs:
|
12 |
| - generateDiagram: |
13 |
| - name: Generate Diagram |
14 |
| - runs-on: ubuntu-latest |
15 |
| - steps: |
16 |
| - - name: Checkout |
17 |
| - uses: actions/checkout@v4 |
18 |
| - - name: Use Node.js |
19 |
| - uses: actions/setup-node@v3 |
20 |
| - with: |
21 |
| - node-version: '21.x' |
22 |
| - - run: npm install --prefix ./scripts/gqm_gen |
23 |
| - - run: npm run coverage-report --prefix ./scripts/gqm_gen |
24 |
| - - name: Report NYC coverage |
25 |
| - |
26 |
| - with: |
27 |
| - coverage_file: ".nyc_output/nyc-coverage-report/coverage-summary.json" |
28 |
| - - run: npm run --silent start --prefix ./scripts/gqm_gen > ./new_gqm.md.tmp |
29 |
| - - run: sh ./scripts/gqm_gen/gqm_update.sh ./new_gqm.md.tmp ./measuring/use_gqm.md > ./measuring/use_gqm.md.tmp |
30 |
| - - run: rm -f ./new_gqm.md.tmp |
31 |
| - - run: mv -f ./measuring/use_gqm.md.tmp ./measuring/use_gqm.md |
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) |
| 12 | + generateDiagram: |
| 13 | + name: Generate Diagram |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - name: Checkout |
| 17 | + uses: actions/checkout@v4 |
| 18 | + with: |
| 19 | + ssh-key: ${{ secrets.WEBSITE_DEPLOY_KEY }} |
| 20 | + - name: Use Node.js |
| 21 | + uses: actions/setup-node@v3 |
| 22 | + with: |
| 23 | + node-version: "21.x" |
| 24 | + - run: npm install --prefix ./scripts/gqm_gen |
| 25 | + - run: npm run coverage-report --prefix ./scripts/gqm_gen |
| 26 | + - name: Report NYC coverage |
| 27 | + |
| 28 | + with: |
| 29 | + coverage_file: ".nyc_output/nyc-coverage-report/coverage-summary.json" |
| 30 | + - run: npm run --silent start --prefix ./scripts/gqm_gen > ./new_gqm.md.tmp |
| 31 | + - run: sh ./scripts/gqm_gen/gqm_update.sh ./new_gqm.md.tmp ./measuring/use_gqm.md > ./measuring/use_gqm.md.tmp |
| 32 | + - run: rm -f ./new_gqm.md.tmp |
| 33 | + - run: mv -f ./measuring/use_gqm.md.tmp ./measuring/use_gqm.md |
| 34 | + - name: Commit GQM Diagram |
| 35 | + working-directory: ./measuring |
| 36 | + run: | |
| 37 | + git config --local user.name "github-actions[bot]" |
| 38 | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" |
| 39 | + git add . |
| 40 | + git diff --staged --quiet || (git commit -m "Update Goals Questions Metrics Graph" && git push) |
0 commit comments