Skip to content

Commit

Permalink
Merge branch 'master' into hermetic-integrationtests2
Browse files Browse the repository at this point in the history
  • Loading branch information
geekosaur authored Jul 17, 2024
2 parents 8cbb41b + 33eac73 commit 96b77ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ on:
inputs:
allow-newer:
description: allow-newer line
required: true
required: false
type: string
constraints:
description: constraints line
required: true
required: false
type: string

env:
Expand Down Expand Up @@ -92,11 +92,15 @@ jobs:
- uses: actions/checkout@v4

# See https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#hackage-revisions
- name: Manually supplied constraints/allow-newer
if: github.event_name == 'workflow_dispatch'
- name: Add manually supplied allow-newer
if: github.event_name == 'workflow_dispatch' && github.event.inputs.allow-newer != ''
run: |
echo "allow-newer: ${ALLOWNEWER}" >> cabal.validate.project
echo "constraints: ${CONSTRAINTS}" >> cabal.validate.project
echo "allow-newer: ${{ github.event.inputs.allow-newer }}" >> cabal.validate.project
- name: Add manually supplied constraints
if: github.event_name == 'workflow_dispatch' && github.event.inputs.constraints != ''
run: |
echo "constraints: ${{ github.event.inputs.constraints }}" >> cabal.validate.project
- uses: haskell-actions/setup@v2
id: setup-haskell
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ it, someone with enough permissions needs to go on the
[Validate workflow page](https://github.com/haskell/cabal/actions/workflows/validate.yml)
and dispatch it manually by clicking "Run workflow".

Running workflow manually as discussed above requires you to supply two inputs:
Running workflow manually as discussed above allows you to supply two inputs:

> allow-newer line
> constraints line
Expand Down

0 comments on commit 96b77ea

Please sign in to comment.