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 b187832
Showing 1 changed file with 20 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

0 comments on commit b187832

Please sign in to comment.