Skip to content

Commit

Permalink
chore: upgrade ci action version (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Sep 29, 2024
1 parent 0c0c9b6 commit 5a2aac2
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/demo/pr-compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
compressed-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: 94dreamer/compressed-size-action@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-mark-duplicate.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: mark-duplicate
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: "mark-duplicate"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-reply.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Need Reproduce
if: github.event.label.name == 'Need Reproduce'
uses: actions-cool/issues-helper@v2
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/issues-dailyclose-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:

jobs:
create-report:
# prevents this action from running on forks
if: github.repository == 'Tencent/tdesign'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: TDesignOteam/create-report@main
with:
wxhook: ${{ secrets.WX_HOOK_URL }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/issues-dailynew-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:

jobs:
create-report:
# prevents this action from running on forks
if: github.repository == 'Tencent/tdesign'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: TDesignOteam/create-report@main
with:
wxhook: ${{ secrets.WX_HOOK_URL }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/issues-statistics-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:

jobs:
create-report:
# prevents this action from running on forks
if: github.repository == 'Tencent/tdesign'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: TDesignOteam/create-report@main
with:
wxhook: ${{ secrets.WX_HOOK_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-spelling.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
Expand All @@ -23,7 +23,7 @@ jobs:
id: pr
run: echo "id=$(<pr-id.txt)" >> $GITHUB_OUTPUT
- name: download _site artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
github.event.workflow_run.conclusion == 'failure'
steps:
- name: download pr artifact
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
outputs:
components-changed: ${{ steps.components-changed.outputs.changed }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 100
- uses: marceloprado/has-changed-path@v1
Expand All @@ -26,14 +26,14 @@ jobs:
needs: modify-components
if: needs.modify-components.outputs.components-changed == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 6.0.2
version: 9
- run: pnpm install
- run: cd packages/components && npm run build
- run: cd packages/components && npm publish
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
if: github.event.ref_type == 'tag'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v2
- uses: actions/cache@v4
env:
cache-name: cache-nodemodules
with:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- run: npm run build
- name: publish
id: publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.TDESIGN_NPM_TOKEN }}
tag: ${{ contains(github.ref_name, 'beta') && 'beta' || 'latest' }}
Expand All @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.ref_type == 'tag'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
outputs:
services-changed: ${{ steps.services-changed.outputs.changed }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 100
- uses: marceloprado/has-changed-path@v1
Expand All @@ -26,8 +26,8 @@ jobs:
needs: modify-services
if: needs.modify-services.outputs.services-changed == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: node ./services/update-components-notice.js
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/service-update-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
if: github.repository == 'Tencent/tdesign'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: node ./services/update-components-notice.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
# needs: test
steps:
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5a2aac2

Please sign in to comment.