From 0a5a3ff8c0c6d4a82bcdda8aedb1ead7878c1660 Mon Sep 17 00:00:00 2001 From: hiron Date: Fri, 11 Mar 2022 10:40:30 +0900 Subject: [PATCH] Update site build ci setting --- .github/workflows/test-build-document.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-document.yml b/.github/workflows/test-build-document.yml index f7a42c2b..409db955 100644 --- a/.github/workflows/test-build-document.yml +++ b/.github/workflows/test-build-document.yml @@ -7,7 +7,7 @@ on: - "website/**" jobs: - deploy: + test-build: runs-on: ubuntu-18.04 defaults: run: @@ -16,4 +16,23 @@ jobs: steps: - uses: actions/checkout@v2 - run: yarn install - - run: yarn build \ No newline at end of file + - 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} \ No newline at end of file