Skip to content

Commit 94dd44f

Browse files
Merge pull request #214 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents 7bff4bb + 9d6cbf8 commit 94dd44f

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.github/workflow-settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"TOC_FOLDING": "1",
1414
"TOC_MAX_HEADER_LEVEL": "3",
1515
"TOC_TITLE": "Details",
16+
"TOC_CREATE_PR": "true",
1617
"BRANCH_PREFIX": "release/"
17-
}
18+
}

.github/workflows/add-release-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
env:
2929
HEAD_REF: ${{ github.head_ref }}
3030
if: startsWith(github.head_ref, 'release/v')
31-
- uses: actions/github-script@0.4.0
31+
- uses: actions/github-script@v3
3232
with:
3333
github-token: ${{ secrets.ACCESS_TOKEN }}
3434
script: |
@@ -39,7 +39,7 @@ jobs:
3939
sha: context.sha
4040
})
4141
if: env.NEXT_VERSION
42-
- uses: actions/github-script@0.4.0
42+
- uses: actions/github-script@v3
4343
with:
4444
github-token: ${{ secrets.ACCESS_TOKEN }}
4545
script: |

.github/workflows/add-test-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
HEAD_REF: ${{ github.head_ref }}
3333
RUN_ID: ${{ github.run_id }}
3434
if: env.NEXT_VERSION
35-
- uses: actions/github-script@0.4.0
35+
- uses: actions/github-script@v3
3636
with:
3737
github-token: ${{ secrets.ACCESS_TOKEN }}
3838
script: |

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
timeout-minutes: 10
5858
strategy:
5959
matrix:
60-
os: [ubuntu-latest, ubuntu-16.04, macos-latest]
60+
os: [ubuntu-16.04, ubuntu-latest, ubuntu-20.04, macos-latest]
6161
steps:
6262
- name: Set running flag
6363
run: echo "RUNNING=1" >> $GITHUB_ENV
@@ -164,6 +164,11 @@ jobs:
164164
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
165165
- uses: actions/checkout@v2
166166
if: env.RUNNING
167+
- name: Check package version
168+
uses: technote-space/package-version-check-action@v1
169+
with:
170+
COMMIT_DISABLED: 1
171+
if: env.RUNNING
167172
- name: Set running flag
168173
run: npx can-npm-publish || echo "RUNNING=" >> $GITHUB_ENV
169174
if: env.RUNNING && matrix.target == 'npm'
@@ -202,11 +207,6 @@ jobs:
202207
restore-keys: |
203208
${{ runner.os }}-yarn-
204209
if: env.RUNNING
205-
- name: Check package version
206-
uses: technote-space/package-version-check-action@v1
207-
with:
208-
COMMIT_DISABLED: 1
209-
if: env.RUNNING
210210
- name: Install Package dependencies
211211
run: yarn install
212212
if: env.RUNNING
@@ -260,7 +260,7 @@ jobs:
260260
timeout-minutes: 3
261261
if: always()
262262
steps:
263-
- uses: technote-space/workflow-conclusion-action@v1
263+
- uses: technote-space/workflow-conclusion-action@v2
264264
- uses: 8398a7/action-slack@v3
265265
with:
266266
status: failure

.github/workflows/toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
- uses: technote-space/load-config-action@v1
1515
with:
1616
CONFIG_FILENAME: workflow-settings.json
17-
- uses: technote-space/toc-generator@v2
17+
- uses: technote-space/toc-generator@v3
1818
with:
1919
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2020
TARGET_BRANCH_PREFIX: ${{ env.BRANCH_PREFIX }}
2121
FOLDING: ${{ env.TOC_FOLDING }}
2222
MAX_HEADER_LEVEL: ${{ env.TOC_MAX_HEADER_LEVEL }}
2323
TOC_TITLE: ${{ env.TOC_TITLE }}
24+
CREATE_PR: ${{ env.TOC_CREATE_PR }}

0 commit comments

Comments
 (0)