Skip to content
Snippets Groups Projects
Unverified Commit 33eac73b authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #10195 from haskell/workflow_dispatch

ci(validate.yml): Allow workflow_dispatch with no allow-newer or constraints
parents d037ce79 a549f24c
No related branches found
No related tags found
No related merge requests found
Pipeline #98282 passed
......@@ -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:
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment