This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
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.
- Loading branch information
1 parent
a28a515
commit 3df72c7
Showing
3 changed files
with
19 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
phases: | ||
- name: main | ||
tasks: | ||
- name: "when true" | ||
command: | ||
command: echo "when is always true" | ||
when: true | ||
- name: when | ||
command: | ||
command: echo "use Tengo script in when" | ||
when: | | ||
// Tengo script | ||
// Define the variable "result" and this value should be true or false. | ||
result := func(task) { | ||
return task.Name == "when" | ||
}(Task) |
This file was deleted.
Oops, something went wrong.