From 2da8b2fad8aedd92906230a58c936a775b0bd382 Mon Sep 17 00:00:00 2001
From: Andreas Abel <andreas.abel@ifi.lmu.de>
Date: Sun, 31 Mar 2024 20:08:33 +0200
Subject: [PATCH] CI validate-old-ghcs: pin to haskell-actions/setup@v2.6

This provides temporary life support to the `validate-old-ghcs` action
until node16 will be finally axed by GHA in May 2024.

Workaround for:
- https://github.com/haskell/cabal/issues/9858
---
 .github/workflows/validate.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 2a5587ce5e..be841c46c1 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -258,7 +258,9 @@ jobs:
           apt-get update
           apt-get install -y ghc-${{ matrix.extra-ghc }}-dyn
 
-      - uses: haskell-actions/setup@v2
+      - uses: haskell-actions/setup@v2.6
+          # From 2.7 the setup action uses node20,
+          # which is not supported by the phadej/ghc:8.8.4-xenial container.
         id: setup-haskell
         with:
           ghc-version: ${{ matrix.ghc }}
-- 
GitLab