Skip to content

Commit

Permalink
Add validate-revision workflow
Browse files Browse the repository at this point in the history
It can be started manually to check that certain version bumps build fine.
It will ask to input an allow-newer line and a constraint line, which it
will add to the cabal.project file. For example: the "filepath"
allow-newer line and "filepath == 1.5" constraints line will make sure
that the build plan will have `filepath` at version 1.5.
  • Loading branch information
ulysses4ever committed Dec 25, 2023
1 parent 8070ab1 commit 8e31729
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/validate-revision.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate Revision

on:
workflow_dispatch:
inputs:
allow-newer:
description: allow-newer line
required: true
type: string
constraints:
description: constraints line
required: true
type: string
env:
ALLOWNEWER: ${{ github.event.inputs.allow-newer }}
CONSTRAINTS: ${{ github.event.inputs.constraints }}

jobs:
validate-main:
uses: ./.github/workflows/validate.yml
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:
release:
types:
- created
workflow_call:

env:
# We choose a stable ghc version across all os's
Expand Down

0 comments on commit 8e31729

Please sign in to comment.