Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update readme #47

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/get-cloudflare-page-url.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable no-console */
const JSDOM = require('jsdom').JSDOM

const [html] = process.argv.slice(2)
const { document } = new JSDOM(html).window

const linkElement = document.querySelector('a')
console.log(linkElement?.href ? linkElement.href.replace(/[/]$/, '') : '')
39 changes: 39 additions & 0 deletions .github/workflows/checkrun-completed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Cloudflare Pages Deployed

on:
check_run:
types: [completed]

jobs:
build:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'

- name: Set testing state
uses: thollander/actions-comment-pull-request@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment_includes: 'Playwright tests'
message: |
## 'Playwright tests'
testing...

- name: Install dependencies
run: yarn install

- name: Check object
run: |
cat << OBJECT
${{ toJson(github) }}
OBJECT
- name: Get Cloudflare Page URL
run: echo "DEPLOYMENT_URL=$(node ${GITHUB_WORKSPACE}/.github/get-cloudflare-page-url.js "${{ github.event.check_run.output.summary }}")"
continue-on-error: true
- run: echo "$DEPLOYMENT_URL"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Sid's Vuepress Blog

version: 0.1.1

## Getting Started

- install it locally [installing]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"vuepress": "^1.2.0"
},
"dependencies": {
"jsdom": "^20.0.0",
"vuepress-theme-sidstraw-blog": "file:./.vuepress/theme",
"yaml": "^1.10.0"
}
Expand Down
Loading