Skip to content

Commit eca2401

Browse files
authored
Simplify vercel action
1 parent 4f732fb commit eca2401

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212

13-
- uses: actions/checkout@v2
14-
with:
15-
repository: darwinia-network/devops
16-
path: .github
17-
18-
- uses: ./.github/actions/smart-vercel
13+
- uses: darwinia-network/devops/actions/smart-vercel@main
1914
name: Deploy to Vercel
20-
id: smart-vercel
2115
with:
2216
vercel_token: ${{ secrets.VERCEL_TOKEN }}
2317
node_version: 18

.github/workflows/deploy-prd.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,8 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

15-
- uses: actions/checkout@v2
16-
with:
17-
repository: darwinia-network/devops
18-
path: .github
19-
20-
- uses: ./.github/actions/smart-vercel
15+
- uses: darwinia-network/devops/actions/smart-vercel@main
2116
name: Deploy to Vercel
22-
id: smart-vercel
2317
with:
2418
vercel_token: ${{ secrets.VERCEL_TOKEN }}
2519
node_version: 18

.github/workflows/deploy-stg.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14-
- uses: actions/checkout@v2
15-
with:
16-
repository: darwinia-network/devops
17-
path: .github
18-
19-
- uses: ./.github/actions/smart-vercel
14+
- uses: darwinia-network/devops/actions/smart-vercel@main
2015
name: Deploy to Vercel
21-
id: smart-vercel
2216
with:
2317
vercel_token: ${{ secrets.VERCEL_TOKEN }}
2418
node_version: 18

0 commit comments

Comments
 (0)