Skip to content

Commit

Permalink
enable overwriting CI.hs with updated last tested at commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Jan 31, 2024
1 parent d397e87 commit 7843175
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions hlint-from-scratch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7843175

Please sign in to comment.