feat: 初始化文件哈希 GitHub Action 项目

This commit is contained in:
ren
2025-10-14 12:22:24 +08:00
commit 7f864dbb36
22 changed files with 4955 additions and 0 deletions

11
examples/config.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "files-hash-example",
"version": "1.0.0",
"description": "Example configuration file for testing",
"settings": {
"debug": false,
"timeout": 5000,
"retries": 3
},
"features": ["hash-calculation", "glob-matching", "error-handling"]
}

6
examples/sample1.txt Normal file
View File

@@ -0,0 +1,6 @@
This is a sample text file for testing the Files Hash Action.
It contains multiple lines of text to ensure proper hash calculation.
Line 3
Line 4
Final line.

26
examples/sample2.js Normal file
View File

@@ -0,0 +1,26 @@
// Sample JavaScript file for testing
/**
* 测试函数
*
* @param {string} name 姓名
* @returns {string} 问候语
*/
function greet(name) {
return `Hello, ${name}!`;
}
/**
* 计算两个数的和.
*
* @param {number} a 第一个数
* @param {number} b 第二个数
* @returns {number} 两个数的和
*/
function calculateSum(a, b) {
return a + b;
}
module.exports = {
greet,
calculateSum,
};