Skip to content

Commit

Permalink
Fix stylish-haskell GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Nov 20, 2023
1 parent bb1e073 commit f8d4a96
Showing 1 changed file with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Check Stylish Haskell

on:
pull_request: # Required for workflows to be able to be approved from forks
merge_group:
pull_request:

# When pushing branches (and/or updating PRs), we do want to cancel previous
# build runs. We assume they are stale now; and do not want to spend CI time and
Expand All @@ -19,29 +19,20 @@ concurrency:
cancel-in-progress: true

jobs:
build:
check-stylish-haskell:
runs-on: ubuntu-latest

strategy:
fail-fast: false

env:
# Modify this value to "invalidate" the cabal cache.
CABAL_CACHE_VERSION: "2023-07-28"
CABAL_CACHE_VERSION: "2023-07-12"

STYLISH_HASKELL_VERSION: "0.14.4.0"

STYLISH_HASKELL_PATHS: >
cardano-testnet
cardano-git-rev
cardano-node
cardano-node-chairman
cardano-tracer
trace-resources
cardano-node-capi
trace-dispatcher
trace-forward
cardano-submit-api
cardano-api
steps:
- name: Download stylish-haskell
Expand Down Expand Up @@ -79,7 +70,7 @@ jobs:
git add .
git stash
git fetch origin ${{ github.base_ref }} --unshallow
for x in $(git diff --name-only origin/${{ github.base_ref }}..HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do
for x in $(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}..HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do
if [ "${x##*.}" == "hs" ]; then
if grep -qE '^#' $x; then
echo "$x contains CPP. Skipping."
Expand Down

0 comments on commit f8d4a96

Please sign in to comment.