Skip to content

Commit e47e87c

Browse files
authored
Merge pull request #759 from OpenSimulationInterface/build/release-action-updates
Update github actions for release workflow
2 parents 6807643 + 803c24e commit e47e87c

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/antora-generator.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Trigger generator
2121
if: ${{ env.MUP_KEY != '' }}
22-
uses: peter-evans/repository-dispatch@v2
22+
uses: peter-evans/repository-dispatch@v3
2323
with:
2424
token: ${{ secrets.MACHINE_USER_PAT }}
2525
event-type: antora-build-trigger

.github/workflows/protobuf.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ on:
1313
jobs:
1414
spellcheck:
1515
name: Spellcheck
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- uses: rojopolis/[email protected]
2020
name: Spellcheck
2121
with:
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Cache Dependencies
5252
id: cache-depends
53-
uses: actions/cache@v3
53+
uses: actions/cache@v4
5454
with:
5555
path: protobuf-${{ env.PROTOBUF_VERSION }}
5656
key: ${{ runner.os }}-v2-depends
@@ -147,7 +147,7 @@ jobs:
147147

148148
- name: Cache Dependencies
149149
id: cache-depends
150-
uses: actions/cache@v3
150+
uses: actions/cache@v4
151151
with:
152152
path: protobuf-${{ env.PROTOBUF_VERSION }}
153153
key: ${{ runner.os }}-v2-depends

.github/workflows/release.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
# Check out the GitHub repository
1919
- name: Checkout interface
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
path: dist/open-simulation-interface
2323
# Set the version variable based on the latest tag (could be replaced with github-internal predefined variable?)
@@ -66,7 +66,7 @@ jobs:
6666
steps:
6767
# Check out the Antora generator
6868
- name: Checkout Antora generator
69-
uses: actions/checkout@v3
69+
uses: actions/checkout@v4
7070
with:
7171
repository: OpenSimulationInterface/osi-antora-generator
7272
path: antora
@@ -94,7 +94,7 @@ jobs:
9494
args: antora.sh
9595
# Upload the created artifact for later jobs to use
9696
- name: Upload artifact
97-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9898
with:
9999
name: antora
100100
path: antora/site
@@ -107,19 +107,19 @@ jobs:
107107
steps:
108108
# Check out the repository (again)
109109
- name: Checkout interface
110-
uses: actions/checkout@v3
110+
uses: actions/checkout@v4
111111
with:
112112
path: dist/open-simulation-interface_${{needs.setup.outputs.output1}}
113113
# Check out the sensor model packaging repo
114114
- name: Checkout sensor model packaging
115-
uses: actions/checkout@v3
115+
uses: actions/checkout@v4
116116
with:
117117
repository: OpenSimulationInterface/osi-sensor-model-packaging
118118
path: dist/osi-sensor-model-packaging
119119
fetch-depth: 0
120120
# Retrieve the Antora artifact from the previous job
121121
- name: Retrieve Antora artifact
122-
uses: actions/download-artifact@v3
122+
uses: actions/download-artifact@v4
123123
with:
124124
name: antora
125125
path: dist/ASAM_OSI_Standard_${{needs.setup.outputs.output1}}/
@@ -154,13 +154,13 @@ jobs:
154154
mv osi-sensor-model-packaging osi-sensor-model-packaging_${{ env.OSMP_VERSION }}
155155
# Package all collected deliverables
156156
- name: Zip Release
157-
uses: TheDoctor0/zip-release@0.6.2
157+
uses: TheDoctor0/zip-release@0.7.6
158158
with:
159159
filename: ASAM_OSI_${{needs.setup.outputs.output1}}.zip
160160
directory: dist
161161
# Upload the created artifact for the publish job
162162
- name: Upload artifact
163-
uses: actions/upload-artifact@v3
163+
uses: actions/upload-artifact@v4
164164
with:
165165
name: deliverables
166166
path: dist/ASAM_OSI_${{needs.setup.outputs.output1}}.zip
@@ -173,7 +173,7 @@ jobs:
173173
steps:
174174
# Retrieve the previously uploaded deliverables artifact
175175
- name: Retrieve previous artifacts
176-
uses: actions/download-artifact@v3
176+
uses: actions/download-artifact@v4
177177
with:
178178
name: deliverables
179179
# Add the new zip file with the deliverables to the respective release

0 commit comments

Comments
 (0)