Skip to content

Commit

Permalink
move to manual / cron job
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
fenollp committed Oct 27, 2022
1 parent df47b5e commit b8d3a3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ cat <<EOF
name: suite
on:
push:
pull_request:
schedule:
- cron: '00 1 * * 1' # At 01:00 on Mondays.
workflow_dispatch:
jobs:
meta-check:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/suite.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: suite

on:
push:
pull_request:
schedule:
- cron: '00 1 * * 1' # At 01:00 on Mondays.
workflow_dispatch:

jobs:
meta-check:
Expand Down
4 changes: 2 additions & 2 deletions cmd/validate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func main() {
}

switch {
case strings.HasPrefix(vd.OpenAPI, "3"):
case vd.OpenAPI == "3" || strings.HasPrefix(vd.OpenAPI, "3."):
loader := openapi3.NewLoader()
loader.IsExternalRefsAllowed = *ext

Expand All @@ -77,7 +77,7 @@ func main() {
log.Fatal(err)
}

case strings.HasPrefix(vd.Swagger, "2"):
case vd.Swagger == "2" || strings.HasPrefix(vd.Swagger, "2."):
if *defaults != defaultDefaults {
log.Fatal("Flag --defaults is only for OpenAPIv3")
}
Expand Down

0 comments on commit b8d3a3b

Please sign in to comment.