From c12bdfaf4f4f6688412e6c036bfbd6a7660a6605 Mon Sep 17 00:00:00 2001 From: Shayne Fletcher Date: Tue, 30 Jan 2024 19:37:26 -0500 Subject: [PATCH] enable overwriting CI.hs with updated last tested at commit --- hlint-from-scratch.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/hlint-from-scratch.sh b/hlint-from-scratch.sh index c372254..4b25811 100755 --- a/hlint-from-scratch.sh +++ b/hlint-from-scratch.sh @@ -238,18 +238,15 @@ else fi #sha_ghc_lib_parser=$(shasum -a 256 "$repo_dir"/ghc-lib/ghc-lib-parser-"$version".tar.gz | awk '{ print $1 }') -# temp disabled while i focus on minimal set of github actions -if false; then - if [ -z "$GHC_FLAVOR" ]; then - # If the above worked out, update CI.hs. - if [ $(uname == "Darwin") ]; then - sed -i '' "s/current = \".*\" -- .*/current = \"$HEAD\" -- $today/g" "$repo_dir"/ghc-lib/CI.hs - else - sed -i'' "s/current = \".*\" -- .*/current = \"$HEAD\" -- $today/g" "$repo_dir"/ghc-lib/CI.hs - fi - # Report. - grep "current = .*" "$repo_dir"/ghc-lib/CI.hs - fi +if [ -z "$GHC_FLAVOR" ]; then + # If the above worked out, update CI.hs. + if [ $(uname) == "Darwin" ]; then + sed -i '' "s/current = \".*\" -- .*/current = \"$HEAD\" -- $today/g" "$repo_dir"/ghc-lib/CI.hs + else + sed -i'' "s/current = \".*\" -- .*/current = \"$HEAD\" -- $today/g" "$repo_dir"/ghc-lib/CI.hs + fi + # Report. + grep "current = .*" "$repo_dir"/ghc-lib/CI.hs fi # ghc-lib-parser-ex