IsExpression returns true if the value is a GitHub Actions expression (i.e. starts with "${{" and ends with "}}").
()
| 99 | // IsExpression returns true if the value is a GitHub Actions expression |
| 100 | // (i.e. starts with "${{" and ends with "}}"). |
| 101 | func (t *TemplatableInt32) IsExpression() bool { |
| 102 | s := string(*t) |
| 103 | return isExpression(s) |
| 104 | } |
| 105 | |
| 106 | // IntValue returns the integer value for numeric literals. |
| 107 | // Returns 0 for GitHub Actions expressions, which are not evaluable at |