Skip to content

Commit

Permalink
fix dhall check
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed Apr 14, 2020
1 parent 2a7cc72 commit 30e773a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dhall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: '11'
- name: Check generated YAML files
run: \nbash -c 'sbt convertDhall'\n\n[[ $(git status --porcelain | wc -l) -eq
0 ]]\n
- name: Generate YAML files
run: sbt convertDhall
- name: Check for differences
run: '[[ $(git status --porcelain | wc -l) -eq 0 ]]'
name: Check Dhall configs
'on':
- push
Expand Down
12 changes: 4 additions & 8 deletions dhall/dhall.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ let c = ./common.dhall
let steps =
[ c.steps.checkout
, c.steps.java c.javaVersions.default
, c.BuildStep.Run
c.Run::{ name = "Generate YAML files", run = "sbt convertDhall" }
, c.BuildStep.Run
c.Run::{
, name = "Check generated YAML files"
, run =
''

bash -c 'sbt convertDhall'

[[ $(git status --porcelain | wc -l) -eq 0 ]]
''
, name = "Check for differences"
, run = "[[ \$(git status --porcelain | wc -l) -eq 0 ]]"
}
]

Expand Down

0 comments on commit 30e773a

Please sign in to comment.