Skip to content

haskell-actions/parse-cabal-file

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

haskell-actions/parse-cabal-file

GitHub Action: Parse Cabal file

Assumes the runner has GHC installed.

Inputs

  • cabal_file (required): The path to a cabal file

Outputs

  • version: The version in the Cabal file

Example

jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - uses: haskell-actions/parse-cabal-file@v1
      id: cabal_file
      with:
        cabal_file: my-library.cabal

    - run: echo ${{ steps.cabal_file.outputs.version }}