https://github.com/freckle/stack-bump-lts-action
GitHub Action to update a stack-based Haskell project to latest resolver
https://github.com/freckle/stack-bump-lts-action
terraform-managed
Last synced: 3 months ago
JSON representation
GitHub Action to update a stack-based Haskell project to latest resolver
- Host: GitHub
- URL: https://github.com/freckle/stack-bump-lts-action
- Owner: freckle
- License: mit
- Created: 2021-02-01T15:52:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T00:29:04.000Z (4 months ago)
- Last Synced: 2025-01-27T01:24:11.370Z (4 months ago)
- Topics: terraform-managed
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 17
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:```yaml
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`:
```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`:
```yaml
- id: bump
uses: freckle/stack-bump-lts-action@main
with:
snapshot-yaml: other-file.yaml
```To operate in a sub-directory:
```yaml
- 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](./LICENSE)