Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
a549f24c
Commit
a549f24c
authored
8 months ago
by
Andrea Bedini
Committed by
Mikolaj
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
ci(validate.yml): Allow workflow_dispatch with no allow-newer or constraints
parent
d037ce79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/validate.yml
+10
-6
10 additions, 6 deletions
.github/workflows/validate.yml
CONTRIBUTING.md
+1
-1
1 addition, 1 deletion
CONTRIBUTING.md
with
11 additions
and
7 deletions
.github/workflows/validate.yml
+
10
−
6
View file @
a549f24c
...
...
@@ -31,11 +31,11 @@ on:
inputs
:
allow-newer
:
description
:
allow-newer line
required
:
tru
e
required
:
fals
e
type
:
string
constraints
:
description
:
constraints line
required
:
tru
e
required
:
fals
e
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
:
M
anually supplied
constraints/
allow-newer
if
:
github.event_name == 'workflow_dispatch'
-
name
:
Add m
anually 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
...
...
This diff is collapsed.
Click to expand it.
CONTRIBUTING.md
+
1
−
1
View file @
a549f24c
...
...
@@ -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
require
s you to supply two inputs:
Running workflow manually as discussed above
allow
s you to supply two inputs:
> allow-newer line
> constraints line
...
...
This diff is collapsed.
Click to expand it.
Mikolaj Konarski
@Mikolaj
mentioned in commit
haskell/cabal@558f3194
·
6 months ago
mentioned in commit
haskell/cabal@558f3194
mentioned in commit haskell/cabal@558f319402f52ba4169dedac08418458f55cc968
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment