fix: script

This commit is contained in:
Hydraallen 2024-05-03 23:07:18 +08:00
parent 3dd9a099cb
commit eeee16f7d2
2 changed files with 10 additions and 3 deletions

View File

@ -10,7 +10,7 @@
"name of check": "forbiddenFile",
"stdout": "Checking forbidden files: Failed",
"exit code": 101,
"stderr": "103the following forbidden files were found: examples/repohealth/success/expected.json, examples/repohealth/success/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/repohealth/success/expected.json examples/repohealth/success/stdin.sh ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force",
"stderr": "103the following forbidden files were found: examples/healthcheck/release/.git, examples/healthcheck/release/README.md, examples/healthcheck/release/conf.toml, examples/healthcheck/release/expected.json, examples/healthcheck/release/stdin.sh, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/release/.git examples/healthcheck/release/README.md examples/healthcheck/release/conf.toml examples/healthcheck/release/expected.json examples/healthcheck/release/stdin.sh ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force",
"errorLog": null
},
{
@ -33,5 +33,12 @@
"exit code": 0,
"stderr": "",
"errorLog": null
},
{
"name of check": "ReleaseCheck",
"stdout": "Checking release tag: OK",
"exit code": 0,
"stderr": "Fine",
"errorLog": null
}
]
]

View File

@ -1,3 +1,3 @@
#!bash
./build/healthcheck -root=./examples/healthcheck/release -releaseTags="h1" -releaseTags="h2" -releaseTags="h3" -releaseTags="h4" -releaseCategories="h" -releaseNumber="2"
./build/healthcheck -root=./examples/healthcheck/release -releaseTags="h1" -releaseTags="h2" -releaseTags="h3" -releaseTags="h4" -releaseCategories="homework" -releaseNumber="2"