Skip to content

Commit

Permalink
Skip missing and contributed funcs in site. (#322)
Browse files Browse the repository at this point in the history
* Skip missing and contrib funcs in site.

* Check site on catalog gen script changes.
  • Loading branch information
etefera authored May 26, 2021
1 parent 9ef57c6 commit 1d58232
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/checkSite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- "functions/**"
- "examples/**"
- "site/**"
- "scripts/generate_catalog/**"
jobs:
build:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion scripts/generate_catalog/generate_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ func getFunctions(branches []string, source string, dest string) []function {
relativeFuncPath, err := getRelativeFunctionPath(source, funcName)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
continue
}

// Skip contributed functions.
if strings.Contains(relativeFuncPath, "contrib/") {
continue
}

// Functions with the hidden field enabled should not be processed.
Expand Down

0 comments on commit 1d58232

Please sign in to comment.