File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 31
31
inputs :
32
32
allow-newer :
33
33
description : allow-newer line
34
- required : true
34
+ required : false
35
35
type : string
36
36
constraints :
37
37
description : constraints line
38
- required : true
38
+ required : false
39
39
type : string
40
40
41
41
env :
@@ -92,11 +92,15 @@ jobs:
92
92
- uses : actions/checkout@v4
93
93
94
94
# See https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#hackage-revisions
95
- - name : Manually supplied constraints/ allow-newer
96
- if : github.event_name == 'workflow_dispatch'
95
+ - name : Add manually supplied allow-newer
96
+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.allow-newer != ''
97
97
run : |
98
- echo "allow-newer: ${ALLOWNEWER}" >> cabal.validate.project
99
- echo "constraints: ${CONSTRAINTS}" >> cabal.validate.project
98
+ echo "allow-newer: ${{ github.event.inputs.allow-newer }}" >> cabal.validate.project
99
+
100
+ - name : Add manually supplied constraints
101
+ if : github.event_name == 'workflow_dispatch' && github.event.inputs.constraints != ''
102
+ run : |
103
+ echo "constraints: ${{ github.event.inputs.constraints }}" >> cabal.validate.project
100
104
101
105
- uses : haskell-actions/setup@v2
102
106
id : setup-haskell
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ it, someone with enough permissions needs to go on the
429
429
[ Validate workflow page] ( https://github.com/haskell/cabal/actions/workflows/validate.yml )
430
430
and dispatch it manually by clicking "Run workflow".
431
431
432
- Running workflow manually as discussed above requires you to supply two inputs:
432
+ Running workflow manually as discussed above allows you to supply two inputs:
433
433
434
434
> allow-newer line
435
435
> constraints line
You can’t perform that action at this time.
0 commit comments