File tree 16 files changed +55
-319774
lines changed
16 files changed +55
-319774
lines changed Original file line number Diff line number Diff line change 7
7
update :
8
8
runs-on : ubuntu-18.04
9
9
steps :
10
- - name : Checkout reffy
11
- uses : actions/checkout@v2
12
- with :
13
- repository : w3c/reffy
14
- ref : main
15
- fetch-depth : 1
16
- path : reffy
17
10
- name : Setup node.js
18
11
uses : actions/setup-node@v2
19
12
with :
20
- node-version : ' 14'
21
- - name : Install pandoc
22
- run : sudo apt-get install pandoc
23
- - name : Setup Reffy
24
- run : |
25
- npm ci
26
- working-directory : reffy
13
+ node-version : 14
14
+
15
+ - name : Install reffy
16
+ run : npm install reffy
17
+
27
18
- name : Run Reffy's crawler
28
- run : npm run ed
29
- working-directory : reffy
19
+ run : |
20
+ mkdir report
21
+ node_modules/.bin/reffy --output report
22
+
30
23
- name : Checkout webref
31
24
uses : actions/checkout@v2
32
25
with :
33
26
path : webref
34
- - name : Copy reports
35
- run : rsync -av --exclude=README.md reffy/reports/ webref/
27
+
28
+ - name : Copy report
29
+ run : rsync -av report/ webref/
30
+
36
31
- name : Push updates to git
37
32
run : |
38
33
git config user.name "reffy-bot"
39
34
git config user.email "<>"
40
35
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
41
36
git add -A
42
- REFFY_SHA=$(git --git-dir= ../reffy/.git rev-parse HEAD )
37
+ REFFY_SHA=$(../node_modules/.bin/reffy --version )
43
38
git commit -m "Update of ED report from new reffy run" -m "Using reffy commit $REFFY_SHA."
44
- #npm version patch
45
39
git push origin HEAD:main
46
- #git push origin --tags
47
40
working-directory : webref
41
+
42
+ - name : Notify webref-analysis that it should update itself
43
+ run : |
44
+ curl -X POST \
45
+ -H "Authorization: Bearer ${{secrets.WEBREF_ANALYSIS_TOKEN}}" \
46
+ -H "Accept: application/vnd.github.v3+json" \
47
+ https://api.github.com/repos/w3c/webref-analysis/actions/workflows/analyze.yml/dispatches \
48
+ -d '{"ref": "main"}'
Original file line number Diff line number Diff line change 7
7
update :
8
8
runs-on : ubuntu-18.04
9
9
steps :
10
- - name : Checkout reffy
11
- uses : actions/checkout@v2
12
- with :
13
- repository : w3c/reffy
14
- ref : main
15
- fetch-depth : 1
16
- path : reffy
17
10
- name : Setup node.js
18
11
uses : actions/setup-node@v2
19
12
with :
20
- node-version : ' 14'
21
- - name : Install pandoc
22
- run : sudo apt-get install pandoc
23
- - name : Setup Reffy
24
- run : |
25
- npm ci
26
- working-directory : reffy
13
+ node-version : 14
14
+
15
+ - name : Install reffy
16
+ run : npm install reffy
17
+
27
18
- name : Run Reffy's crawler
28
- run : npm run tr
29
- working-directory : reffy
19
+ run : |
20
+ mkdir report
21
+ node_modules/.bin/reffy --release --output report
22
+
30
23
- name : Checkout webref
31
24
uses : actions/checkout@v2
32
25
with :
33
26
path : webref
34
- - name : Copy reports
35
- run : rsync -av --exclude=README.md reffy/reports/ webref/
27
+
28
+ - name : Copy report
29
+ run : rsync -av report/ webref/
30
+
36
31
- name : Push updates to git
37
32
run : |
38
33
git config user.name "reffy-bot"
39
34
git config user.email "<>"
40
35
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
41
36
git add -A
42
- REFFY_SHA=$(git --git-dir= ../reffy/.git rev-parse HEAD )
37
+ REFFY_SHA=$(../node_modules/.bin/reffy --version )
43
38
git commit -m "Update of TR report from new reffy run" -m "Using reffy commit $REFFY_SHA."
44
- #npm version patch
45
39
git push origin HEAD:main
46
- #git push origin --tags
47
40
working-directory : webref
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments