From 37163b6c14c9dcb3e8686a2de30baf0914e8ad76 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Fri, 12 Jan 2024 13:41:15 +0100 Subject: [PATCH 1/2] Update github actions for release workflow Signed-off-by: Pierre R. Mai --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 541186c34..c68183981 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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?) @@ -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 @@ -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 @@ -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}}/ @@ -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 @@ -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 From 803c24e2d64c4ecef721ad255cfc1459391679a2 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Fri, 8 Mar 2024 16:46:39 +0100 Subject: [PATCH 2/2] Also fix remaining outdated actions in other workflows Signed-off-by: Pierre R. Mai --- .github/workflows/antora-generator.yml | 2 +- .github/workflows/protobuf.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/antora-generator.yml b/.github/workflows/antora-generator.yml index 251478266..6e38c9126 100644 --- a/.github/workflows/antora-generator.yml +++ b/.github/workflows/antora-generator.yml @@ -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 diff --git a/.github/workflows/protobuf.yml b/.github/workflows/protobuf.yml index 8bd4c37cc..cce1a59fd 100644 --- a/.github/workflows/protobuf.yml +++ b/.github/workflows/protobuf.yml @@ -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: @@ -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 @@ -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