Skip to content

Commit facd719

Browse files
committed
ENH: Use latest actions, do not pin to latest version
The convention of only specifying the MAJOR version is the indicator that the latest version in that series should be used. By not specifying the MINOR and PATCH, the exact versions is not pinned, but the latest in that series is chosen. (i.e. the v5 tag is updated every time a new MINOR or PATCH tag is generated). This allows benefiting from minor patch fixes without needing to update workflows.
1 parent 77393b8 commit facd719

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
cmake-build-type: "MinSizeRel"
2828

2929
steps:
30-
- uses: actions/checkout@v4.2.2
30+
- uses: actions/checkout@v4
3131
with:
3232
path: Ex
3333

3434
- name: Set up Python 3.11
35-
uses: actions/setup-python@v5.4.0
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: 3.11
3838

@@ -151,12 +151,12 @@ jobs:
151151
cmake-build-type: "MinSizeRel"
152152

153153
steps:
154-
- uses: actions/checkout@v4.2.2
154+
- uses: actions/checkout@v4
155155
with:
156156
path: Ex
157157

158158
- name: Set up Python 3.11
159-
uses: actions/setup-python@v5.4.0
159+
uses: actions/setup-python@v5
160160
with:
161161
python-version: 3.11
162162

@@ -237,9 +237,9 @@ jobs:
237237
os: [ubuntu-24.04, windows-2022, macos-13]
238238

239239
steps:
240-
- uses: actions/checkout@v4.2.2
240+
- uses: actions/checkout@v4
241241
- name: Set up Python 3.11
242-
uses: actions/setup-python@v5.4.0
242+
uses: actions/setup-python@v5
243243
with:
244244
python-version: 3.11
245245

@@ -271,13 +271,13 @@ jobs:
271271
cmake-build-type: "Release"
272272

273273
steps:
274-
- uses: actions/checkout@v4.2.2
274+
- uses: actions/checkout@v4
275275
with:
276276
path: Ex
277277
submodules: recursive
278278

279279
- name: Set up Python 3.11
280-
uses: actions/setup-python@v5.4.0
280+
uses: actions/setup-python@v5
281281
with:
282282
python-version: 3.11
283283

0 commit comments

Comments
 (0)