Skip to content

Commit 2aebc7e

Browse files
committed
refactor(server): update action yml script
1 parent f141f2d commit 2aebc7e

9 files changed

Lines changed: 23 additions & 12 deletions

File tree

.github/actions/setup-mdbook/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
steps:
77
- name: Cache mdbook
88
id: cache-mdbook
9-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2294
9+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
1010
with:
1111
path: ./mdbook-bin
1212
key: ${{ runner.os }}-mdbook-v1
@@ -26,7 +26,7 @@ runs:
2626

2727
- name: Cache mdbook-mermaid
2828
id: cache-mermaid
29-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2294
29+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3030
with:
3131
path: |
3232
~/.cargo/bin/mdbook-mermaid

.github/actions/setup-rust/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ runs:
1414
with:
1515
components: ${{ inputs.components }}
1616
cache: true
17+
cache-on-failure: true

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly

.github/workflows/analysis-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ permissions:
55
contents: read
66

77
on:
8+
workflow_dispatch:
89
push:
910
branches:
1011
- dev
@@ -27,7 +28,7 @@ jobs:
2728
- name: Checkout
2829
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2930
with:
30-
fetch-depth: 0
31+
fetch-depth: 1
3132

3233
- uses: ./.github/actions/setup-pnpm
3334

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: docs
22
run-name: ${{ github.actor }} docs
33

44
on:
5+
workflow_dispatch:
56
push:
67
branches:
78
- dev
@@ -25,7 +26,7 @@ jobs:
2526
steps:
2627
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2728
with:
28-
fetch-depth: 0
29+
fetch-depth: 1
2930

3031
- uses: ./.github/actions/setup-mdbook
3132

@@ -43,7 +44,7 @@ jobs:
4344
steps:
4445
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
4546
with:
46-
fetch-depth: 0
47+
fetch-depth: 1
4748

4849
- uses: ./.github/actions/setup-mdbook
4950

.github/workflows/extension-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ permissions:
66
checks: write
77

88
on:
9+
workflow_dispatch:
910
push:
1011
branches:
1112
- dev
@@ -30,7 +31,7 @@ jobs:
3031
- name: Checkout
3132
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3233
with:
33-
fetch-depth: 0
34+
fetch-depth: 1
3435

3536
- uses: ./.github/actions/setup-pnpm
3637

.github/workflows/extension-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2121
with:
22-
fetch-depth: 0
22+
fetch-depth: 1
2323

2424
- name: Set VERSION
2525
run: |

.github/workflows/server-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ permissions:
66
checks: write
77

88
on:
9+
workflow_dispatch:
910
push:
1011
branches:
1112
- dev
@@ -31,7 +32,7 @@ jobs:
3132
- name: Checkout
3233
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3334
with:
34-
fetch-depth: 0
35+
fetch-depth: 1
3536

3637
- uses: ./.github/actions/setup-pnpm
3738

@@ -53,7 +54,7 @@ jobs:
5354
- name: Checkout
5455
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5556
with:
56-
fetch-depth: 0
57+
fetch-depth: 1
5758

5859
- uses: ./.github/actions/setup-rust
5960

.github/workflows/server-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Checkout
3232
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3333
with:
34-
fetch-depth: 0
34+
fetch-depth: 1
3535

3636
- uses: ./.github/actions/extract-changelog
3737
with:
@@ -91,7 +91,7 @@ jobs:
9191
- name: Checkout
9292
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
9393
with:
94-
fetch-depth: 0
94+
fetch-depth: 1
9595

9696
- name: Set VERSION
9797
run: |
@@ -107,7 +107,7 @@ jobs:
107107
if: runner.os == 'Windows'
108108
run: |
109109
rm -rf ./web/dist
110-
mv ../server-ui/dist ./web/dist
110+
mv ${{ github.workspace }}/apps/server-ui/dist ./web/dist
111111
112112
- uses: taiki-e/upload-rust-binary-action@3962470d6e7f1993108411bc3f75a135ec67fc8c
113113
with:

0 commit comments

Comments
 (0)