From 6d3c8f3e201cdfb184c6d30067e85e1964ba7919 Mon Sep 17 00:00:00 2001 From: Ben Axelrod Date: Wed, 8 Jan 2025 14:44:00 -0500 Subject: [PATCH] [SW-1712] Pin ubuntu version in workflows (#137) ## Change Overview This is simply a find/replace of `ubuntu-latest` -> `ubuntu-22.04`. Because `ubuntu-latest` will become 24.04 soon. We should pin to 22.04 which matches our development environment. ## Testing Done None. This PR is the test. (Assuming this repo has CI) --- .github/workflows/ci.yml | 6 +++--- .github/workflows/maintenance.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f7af0b..1af8ce4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ concurrency: jobs: lint: name: Lint ros_utilities packages - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@v3 @@ -32,7 +32,7 @@ jobs: uses: pre-commit/action@v3.0.0 prepare_container: name: Prepare Humble container for tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: lint permissions: contents: read @@ -74,7 +74,7 @@ jobs: cache-to: type=gha,mode=max build_and_test: name: Build and test ros_utilities packages - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: prepare_container container: image: ${{ needs.prepare_container.outputs.image }} diff --git a/.github/workflows/maintenance.yaml b/.github/workflows/maintenance.yaml index 509550b..8f0eec7 100644 --- a/.github/workflows/maintenance.yaml +++ b/.github/workflows/maintenance.yaml @@ -12,7 +12,7 @@ env: jobs: clean-ghcr: name: Prune old images from Github Container Registry - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Delete old pull request images uses: snok/container-retention-policy@v2