Skip to content

Commit

Permalink
Update site build ci setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hrntsm committed Mar 11, 2022
1 parent b2a45cb commit 0a5a3ff
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/test-build-document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "website/**"

jobs:
deploy:
test-build:
runs-on: ubuntu-18.04
defaults:
run:
Expand All @@ -16,4 +16,23 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: yarn install
- run: yarn build
- run: yarn build

check-version:
runs-on: ubuntu-latest

steps:
- name: Create comments
run: |
echo "アップデートに向けて以下更新したか?" >> comments
echo "- package.json のバージョン" >> comments
sed -i -z 's/\n/\\n/g' comments
- name: Post multi-line comments
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.event.pull_request.comments_url }}
run: |
curl -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" \
-d "{\"body\": \"$(cat comments)\"}" \
${URL}

0 comments on commit 0a5a3ff

Please sign in to comment.