Skip to content

Commit b2fd805

Browse files
committed
docs: add documentation for git commit hash change detection
AI-Generated: true AI-Model: claude-3.5-sonnet Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
1 parent 5caeb17 commit b2fd805

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/firmware-action/change_detection.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ On next run, this file (if exists) is loaded with time stamp of last successful
3838
## Configuration file changes
3939

4040
Firmware-action can also detect changes in the configuration file. For each module, on each successful build, it stores a copy of the configuration in `.firmware-action/configs/` directory. On next run, current configuration is compared to configuration of last successful build, and if the configuration for the specific module differs, module is re-built.
41+
42+
43+
## Git commit hash changes
44+
45+
`firmware-action` can detect changes based on git commit hashes. For each module, on each successful build, it stores the git commit hash of the module's repository path (`repo_path`) in `.firmware-action/git-hash/` directory. On next run, the current git commit hash of the module's repository is compared to the stored hash from the last successful build. If the hashes differ, indicating that the module's repository has been changed, the module is re-built.

0 commit comments

Comments
 (0)