File tree Expand file tree Collapse file tree 4 files changed +377
-6
lines changed Expand file tree Collapse file tree 4 files changed +377
-6
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable no-console */
2+ const JSDOM = require ( 'jsdom' ) . JSDOM
3+
4+ const [ html ] = process . argv . slice ( 2 )
5+ const { document } = new JSDOM ( html ) . window
6+
7+ const linkElement = document . querySelector ( 'a' )
8+ console . log ( linkElement ?. href ? linkElement . href . replace ( / [ / ] $ / , '' ) : '' )
Original file line number Diff line number Diff line change 1+ name : Cloudflare Pages Deployed
2+
3+ on :
4+ check_run :
5+ types : [completed]
6+
7+ jobs :
8+ build :
9+ name : Test
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v3
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : ' 16.x'
17+ cache : ' yarn'
18+
19+ - name : Set testing state
20+ uses : thollander/actions-comment-pull-request@v1
21+ with :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ pr_number : 47
24+ comment_includes : ' Playwright tests'
25+ message : |
26+ ## 'Playwright tests'
27+ testing...
28+
29+ - name : Install dependencies
30+ run : yarn install
31+
32+ - name : Check object
33+ run : |
34+ cat << OBJECT
35+ ${{ toJson(github) }}
36+ OBJECT
37+ - name : Get Cloudflare Page URL
38+ run : echo "DEPLOYMENT_URL=$(node ${GITHUB_WORKSPACE}/.github/get-cloudflare-page-url.js "${{ github.event.check_run.output.summary }}")"
39+ continue-on-error : true
40+ - run : echo "$DEPLOYMENT_URL"
Original file line number Diff line number Diff line change 3939 "vuepress" : " ^1.2.0"
4040 },
4141 "dependencies" : {
42+ "jsdom" : " ^20.0.0" ,
4243 "vuepress-theme-sidstraw-blog" : " file:./.vuepress/theme" ,
4344 "yaml" : " ^1.10.0"
4445 }
You can’t perform that action at this time.
0 commit comments