Skip to content

Commit e55ba59

Browse files
committed
[Minor] checkout with ref
1 parent f323072 commit e55ba59

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28-
with:
28+
with:
2929
fetch-depth: 0
30+
ref: main
3031

3132
- name: Set Version
3233
id: package_version
@@ -57,7 +58,8 @@ jobs:
5758
steps:
5859
- uses: actions/checkout@v4
5960
with:
60-
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
61+
fetch-depth: 0
62+
ref: main
6163

6264
# Install the .NET SDK indicated in the global.json file
6365
- name: Setup .NET
@@ -104,7 +106,10 @@ jobs:
104106
run_test:
105107
runs-on: ubuntu-latest
106108
steps:
107-
- uses: actions/checkout@v3
109+
- uses: actions/checkout@v4
110+
with:
111+
fetch-depth: 0
112+
ref: main
108113
- name: Setup .NET
109114
uses: actions/setup-dotnet@v4
110115
- name: Run tests
@@ -115,7 +120,9 @@ jobs:
115120
needs: [ validate_nuget, run_test ]
116121
steps:
117122
- uses: actions/checkout@v4
118-
123+
with:
124+
fetch-depth: 0
125+
ref: main
119126
- name: Create Release
120127
run: gh release create ${{ github.ref_name }} --generate-notes
121128
env:

0 commit comments

Comments
 (0)