Skip to content

GitHub Action to update a stack-based Haskell project to latest resolver

License

Notifications You must be signed in to change notification settings

freckle/stack-bump-lts-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack Bump LTS Action

Automatically update a Stack-based Haskell project to latest LTS.

Usage

This action just bumps and commits, so you will need to do something after it runs. For example, you could use create-pull-request:

jobs:
  bump:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - id: bump
        uses: freckle/stack-bump-lts-action@main

      - name: Create PR
        if: ${{ steps.bump.outputs.newer-available }}
        uses: peter-evans/create-pull-request@v3
        with:
          branch: gh/bump-lts
          title: Bump Stackage LTS
          body: ${{ steps.bump.outputs.commit-message }}

Options

If you use a path other than stack.yaml:

- id: bump
  uses: freckle/stack-bump-lts-action@main
  with:
    stack-yaml: stack-default.yaml

If your stack.yml uses resolver: ./other-file.yaml:

- id: bump
  uses: freckle/stack-bump-lts-action@main
  with:
    snapshot-yaml: other-file.yaml

To operate in a sub-directory:

- id: bump
  uses: freckle/stack-bump-lts-action@main
  with:
    working-directory: backend

NOTE: Path options are relative to this.

Package Diff

The commit message will link to a diff of packages changes between the resolvers. For example,

https://www.stackage.org/diff/lts-16.29/lts-17.1


LICENSE

About

GitHub Action to update a stack-based Haskell project to latest resolver

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published