diff --git a/.github/workflow-settings.json b/.github/workflow-settings.json index 7cd34a6e..739c0c43 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/add-release-tag.yml b/.github/workflows/add-release-tag.yml index 90dd4357..04994504 100644 --- a/.github/workflows/add-release-tag.yml +++ b/.github/workflows/add-release-tag.yml @@ -28,7 +28,7 @@ jobs: env: HEAD_REF: ${{ github.head_ref }} if: startsWith(github.head_ref, 'release/v') - - uses: actions/github-script@0.4.0 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | @@ -39,7 +39,7 @@ jobs: sha: context.sha }) if: env.NEXT_VERSION - - uses: actions/github-script@0.4.0 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | diff --git a/.github/workflows/add-test-tag.yml b/.github/workflows/add-test-tag.yml index 1b644bdb..7dc44f01 100644 --- a/.github/workflows/add-test-tag.yml +++ b/.github/workflows/add-test-tag.yml @@ -32,7 +32,7 @@ jobs: HEAD_REF: ${{ github.head_ref }} RUN_ID: ${{ github.run_id }} if: env.NEXT_VERSION - - uses: actions/github-script@0.4.0 + - uses: actions/github-script@v3 with: github-token: ${{ secrets.ACCESS_TOKEN }} script: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21fc1dc1..fc708e92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - os: [ubuntu-latest, ubuntu-16.04, macos-latest] + os: [ubuntu-16.04, ubuntu-latest, ubuntu-20.04, macos-latest] steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV @@ -164,6 +164,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' @@ -202,11 +207,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 @@ -260,7 +260,7 @@ jobs: timeout-minutes: 3 if: always() steps: - - uses: technote-space/workflow-conclusion-action@v1 + - uses: technote-space/workflow-conclusion-action@v2 - uses: 8398a7/action-slack@v3 with: status: failure diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 27f0afa2..083d208c 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 }}