Open RyanGlScott opened 3 years ago
You can also include mismatched command names in the REGENDATA
, and haskell-ci
will silently ignore them. For instance, if you put the following REGENDATA
in .github/workflows/haskell-ci.yml
:
# REGENDATA ("0.11.20201227",["travis","--config=cabal.haskell-ci","cabal.project"])
Then it will still generate GitHub Actions YAML, but the recommended command will be haskell-ci 'travis' '--config=cabal.haskell-ci' 'cabal.project'
nonetheless.
A minor bug: if a generated YAML file's
REGENDATA
is missing the name of the command (e.g.,github
), then the "this config has been generated by a script via" message will also be missing it, resulting in an invalid command. Here is an example fromprofunctors
' YAML:Notice the use of
haskell-ci '--config=cabal.haskell-ci' 'cabal.project'
, which should actually behaskell-ci 'github' '--config=cabal.haskell-ci' 'cabal.project'
.