From 9b66155d078613883173d389b66a51e36190f706 Mon Sep 17 00:00:00 2001 From: filipecosta90 Date: Sun, 24 Nov 2024 21:16:15 +0000 Subject: [PATCH] use checkout@v3 in case of ubuntu 18.04 --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91f3fdf..48da3e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,13 @@ jobs: container: ${{ matrix.image }} name: Build ${{ matrix.image }} steps: - - uses: ${{ matrix.image == 'ubuntu:18.04' && 'actions/checkout@v3' || 'actions/checkout@v4' }} + - name: Checkout Code for ubuntu:bionic + if: matrix.image == 'ubuntu:bionic' + uses: actions/checkout@v3 + + - name: Checkout Code for other versions + if: matrix.image != 'ubuntu:bionic' + uses: actions/checkout@v4 - name: Install dependencies run: | apt-get -qq update -y