From 080ee8869f8e96e12f55b36033b629328c5010ee Mon Sep 17 00:00:00 2001 From: Jannis Date: Sun, 8 Mar 2026 11:45:27 +0100 Subject: [PATCH] docs: schema: add `tasks.task.method` (#2718) --- website/src/docs/reference/schema.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/src/docs/reference/schema.md b/website/src/docs/reference/schema.md index 9566ba69..f70f336b 100644 --- a/website/src/docs/reference/schema.md +++ b/website/src/docs/reference/schema.md @@ -543,6 +543,21 @@ tasks: - go build ./... ``` +#### `method` + +- **Type**: `string` +- **Default**: `checksum` +- **Options**: `checksum`, `timestamp`, `none` +- **Description**: Method for checking if the task is up-to-date. Refer to the `method` root property for details. + +```yaml +tasks: + build: + sources: + - go.mod + method: timestamp +``` + #### `sources` - **Type**: `[]string` or `[]Glob`