mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-12-28 18:41:20 +08:00
no log: Add pre-check script to CI
This commit is contained in:
parent
95bef2d519
commit
193805bbed
2 changed files with 22 additions and 3 deletions
18
.github/scripts/pre_check.sh
vendored
Executable file
18
.github/scripts/pre_check.sh
vendored
Executable file
|
@ -0,0 +1,18 @@
|
|||
#! /bin/bash
|
||||
# This script is used in release-it as hook
|
||||
# Change how this script is triggered by editing .release-it.json
|
||||
# NOTE: Please make sure working directory is in root of repo
|
||||
|
||||
set -e
|
||||
|
||||
file_list=$(cat .github/files_to_copy)
|
||||
for f in $file_list
|
||||
do
|
||||
echo "**** checking $f ****"
|
||||
if [ ! -f $f ] && [ ! -d $f ]; then
|
||||
echo "**** $f doesn't exist, skipping release ****"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "**** pre-check is finished ****"
|
|
@ -14,10 +14,11 @@
|
|||
"ignoreVersion": true
|
||||
},
|
||||
"hooks": {
|
||||
"after:git:release": [
|
||||
"before:init": [
|
||||
"chmod +x .github/scripts/*",
|
||||
".github/scripts/create_asset.sh"
|
||||
]
|
||||
".github/scripts/pre_check.sh"
|
||||
],
|
||||
"after:git:release": ".github/scripts/create_asset.sh"
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/bumper": {
|
||||
|
|
Loading…
Reference in a new issue