Skip to content

Commit 923f125

Browse files
committed
feat: add ref parameter to checkout step in deploy workflows
1 parent a8bcd22 commit 923f125

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.ref_name }}
2325

2426
- name: Set up Node.js
2527
uses: actions/setup-node@v4

.github/workflows/develop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.ref_name }}
2224

2325
- name: Set up Node.js
2426
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)