Skip to content

Commit b8c7cfd

Browse files
committed
feat: add deploy key
1 parent 2bd2789 commit b8c7cfd

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

.github/workflows/gqm_update.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,38 @@ on:
33
push:
44
branches: [main]
55
paths:
6-
- 'measuring/goals/**'
7-
- 'measuring/questions/**'
8-
- 'measuring/metrics/**'
6+
- "measuring/goals/**"
7+
- "measuring/questions/**"
8+
- "measuring/metrics/**"
99

1010
workflow_dispatch:
1111
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-
uses: sidx1024/[email protected]
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+
uses: sidx1024/[email protected]
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

Comments
 (0)