Skip to content

Commit a9cb1b6

Browse files
committed
Checkout repo at ref that triggered workflow run.
1 parent 952b239 commit a9cb1b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
uses: actions/checkout@v4
4747
with:
4848
submodules: recursive
49+
ref: ${{ github.ref }}
4950

5051
# Restore Tools from Manifest list in the Repository
5152
- name: Restore dotnet tools
@@ -105,6 +106,7 @@ jobs:
105106
uses: actions/checkout@v4
106107
with:
107108
submodules: recursive
109+
ref: ${{ github.ref }}
108110

109111
# Restore Tools from Manifest list in the Repository
110112
- name: Restore dotnet tools
@@ -227,6 +229,7 @@ jobs:
227229
uses: actions/checkout@v4
228230
with:
229231
submodules: recursive
232+
ref: ${{ github.ref }}
230233

231234
# Semver regex: https://regex101.com/r/Ly7O1x/3/
232235
- name: Format Date/Time of Release Package Version
@@ -425,6 +428,7 @@ jobs:
425428
uses: actions/checkout@v4
426429
with:
427430
submodules: recursive
431+
ref: ${{ github.ref }}
428432

429433
# Restore Tools from Manifest list in the Repository
430434
- name: Restore dotnet tools

0 commit comments

Comments
 (0)