From 50911987d36f9be9719516283ea1dbc5d4e8c524 Mon Sep 17 00:00:00 2001 From: technote-space Date: Fri, 27 Nov 2020 15:13:59 +0000 Subject: [PATCH] chore: sync workflows --- .github/workflow-settings.json | 3 ++- .github/workflows/ci.yml | 10 +++++----- .github/workflows/toc.yml | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflow-settings.json b/.github/workflow-settings.json index 7cd34a6..739c0c4 100644 --- a/.github/workflow-settings.json +++ b/.github/workflow-settings.json @@ -13,5 +13,6 @@ "TOC_FOLDING": "1", "TOC_MAX_HEADER_LEVEL": "3", "TOC_TITLE": "Details", + "TOC_CREATE_PR": "true", "BRANCH_PREFIX": "release/" -} \ No newline at end of file +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58c8eee..363d821 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,6 +139,11 @@ jobs: NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - uses: actions/checkout@v2 if: env.RUNNING + - name: Check package version + uses: technote-space/package-version-check-action@v1 + with: + COMMIT_DISABLED: 1 + if: env.RUNNING - name: Set running flag run: npx can-npm-publish || echo "RUNNING=" >> $GITHUB_ENV if: env.RUNNING && matrix.target == 'npm' @@ -177,11 +182,6 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- if: env.RUNNING - - name: Check package version - uses: technote-space/package-version-check-action@v1 - with: - COMMIT_DISABLED: 1 - if: env.RUNNING - name: Install Package dependencies run: yarn install if: env.RUNNING diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 27f0afa..083d208 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -14,10 +14,11 @@ jobs: - uses: technote-space/load-config-action@v1 with: CONFIG_FILENAME: workflow-settings.json - - uses: technote-space/toc-generator@v2 + - uses: technote-space/toc-generator@v3 with: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} TARGET_BRANCH_PREFIX: ${{ env.BRANCH_PREFIX }} FOLDING: ${{ env.TOC_FOLDING }} MAX_HEADER_LEVEL: ${{ env.TOC_MAX_HEADER_LEVEL }} TOC_TITLE: ${{ env.TOC_TITLE }} + CREATE_PR: ${{ env.TOC_CREATE_PR }}