-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
origin
refers to workflow original path.
- Loading branch information
1 parent
ea879cb
commit 187d1a2
Showing
5 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{{ if eq .title nil }}{{ panic "missing property: title" }}{{ end }} | ||
{{ if eq .config nil }}{{ panic "missing property: config" }}{{ end }} | ||
{{ if eq .input nil }}{{ panic "missing property: input" }}{{ end }} | ||
{{ if eq .output nil }}{{ panic "missing property: output" }}{{ end }} | ||
{{ job.Set "title" .title }} | ||
{{ if strings.Contains .config ".." }}{{ panic (printf "%s is illegal" .config) }}{{ end }} | ||
{{ if strings.Contains .input ".." }}{{ panic (printf "%s is illegal" .input) }}{{ end }} | ||
{{ if strings.Contains .output ".." }}{{ panic (printf "%s is illegal" .output) }}{{ end }} | ||
{{ job.Set "title" "Build Tailwind CSS" }} | ||
{{ job.Set "executable" "tailwindcss" }} | ||
{{ (job.Get "args").Push "-c" (path.Join root .config) "--input" (path.Join root .input) "--output" (path.Join root .output) }} | ||
{{ (job.Get "args").Push "-c" (path.Join origin .config) "--input" (path.Join origin .input) "--output" (path.Join root .output) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters