Skip to content

Update github actions for release workflow #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/antora-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: Trigger generator
if: ${{ env.MUP_KEY != '' }}
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MACHINE_USER_PAT }}
event-type: antora-build-trigger
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
jobs:
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: rojopolis/spellcheck-github-actions@0.36.0
name: Spellcheck
with:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Cache Dependencies
id: cache-depends
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-${{ env.PROTOBUF_VERSION }}
key: ${{ runner.os }}-v2-depends
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:

- name: Cache Dependencies
id: cache-depends
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: protobuf-${{ env.PROTOBUF_VERSION }}
key: ${{ runner.os }}-v2-depends
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
# Check out the GitHub repository
- name: Checkout interface
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: dist/open-simulation-interface
# Set the version variable based on the latest tag (could be replaced with github-internal predefined variable?)
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
steps:
# Check out the Antora generator
- name: Checkout Antora generator
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: OpenSimulationInterface/osi-antora-generator
path: antora
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
args: antora.sh
# Upload the created artifact for later jobs to use
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: antora
path: antora/site
Expand All @@ -107,19 +107,19 @@ jobs:
steps:
# Check out the repository (again)
- name: Checkout interface
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: dist/open-simulation-interface_${{needs.setup.outputs.output1}}
# Check out the sensor model packaging repo
- name: Checkout sensor model packaging
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: OpenSimulationInterface/osi-sensor-model-packaging
path: dist/osi-sensor-model-packaging
fetch-depth: 0
# Retrieve the Antora artifact from the previous job
- name: Retrieve Antora artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: antora
path: dist/ASAM_OSI_Standard_${{needs.setup.outputs.output1}}/
Expand Down Expand Up @@ -154,13 +154,13 @@ jobs:
mv osi-sensor-model-packaging osi-sensor-model-packaging_${{ env.OSMP_VERSION }}
# Package all collected deliverables
- name: Zip Release
uses: TheDoctor0/zip-release@0.6.2
uses: TheDoctor0/zip-release@0.7.6
with:
filename: ASAM_OSI_${{needs.setup.outputs.output1}}.zip
directory: dist
# Upload the created artifact for the publish job
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: deliverables
path: dist/ASAM_OSI_${{needs.setup.outputs.output1}}.zip
Expand All @@ -173,7 +173,7 @@ jobs:
steps:
# Retrieve the previously uploaded deliverables artifact
- name: Retrieve previous artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: deliverables
# Add the new zip file with the deliverables to the respective release
Expand Down