Skip to content

Commit 2d6354d

Browse files
authored
Only crawl specs, don't create analyses reports (#388)
This makes Webref stop generating analyses reports, sticking to crawl data only. Study analyses will now be published over within the w3c/webref-analysis repo (and only for the Editor's Drafts). The job that updates the crawl data sends a dispatch message to the analysis job at w3c/webref-analysis when crawl data is updated. This update removes all local reports, replacing HTML pages with redirects (or with a message for the TR-centric perspective).
1 parent 17a0f8c commit 2d6354d

16 files changed

+55
-319774
lines changed

.github/workflows/update-ed.yml

+22-21
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,42 @@ jobs:
77
update:
88
runs-on: ubuntu-18.04
99
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
1710
- name: Setup node.js
1811
uses: actions/setup-node@v2
1912
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+
2718
- 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+
3023
- name: Checkout webref
3124
uses: actions/checkout@v2
3225
with:
3326
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+
3631
- name: Push updates to git
3732
run: |
3833
git config user.name "reffy-bot"
3934
git config user.email "<>"
4035
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
4136
git add -A
42-
REFFY_SHA=$(git --git-dir=../reffy/.git rev-parse HEAD)
37+
REFFY_SHA=$(../node_modules/.bin/reffy --version)
4338
git commit -m "Update of ED report from new reffy run" -m "Using reffy commit $REFFY_SHA."
44-
#npm version patch
4539
git push origin HEAD:main
46-
#git push origin --tags
4740
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"}'

.github/workflows/update-tr.yml

+14-21
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,34 @@ jobs:
77
update:
88
runs-on: ubuntu-18.04
99
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
1710
- name: Setup node.js
1811
uses: actions/setup-node@v2
1912
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+
2718
- 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+
3023
- name: Checkout webref
3124
uses: actions/checkout@v2
3225
with:
3326
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+
3631
- name: Push updates to git
3732
run: |
3833
git config user.name "reffy-bot"
3934
git config user.email "<>"
4035
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
4136
git add -A
42-
REFFY_SHA=$(git --git-dir=../reffy/.git rev-parse HEAD)
37+
REFFY_SHA=$(../node_modules/.bin/reffy --version)
4338
git commit -m "Update of TR report from new reffy run" -m "Using reffy commit $REFFY_SHA."
44-
#npm version patch
4539
git push origin HEAD:main
46-
#git push origin --tags
4740
working-directory: webref

ed/diff.md

-4
This file was deleted.

ed/diffnew.md

-4
This file was deleted.

0 commit comments

Comments
 (0)