Merge branch 'config' into localApps
This commit is contained in:
commit
a274359c96
|
|
@ -45,6 +45,6 @@ jobs:
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "没有文件变更,跳过提交"
|
echo "没有文件变更,跳过提交"
|
||||||
else
|
else
|
||||||
git commit --quiet -m "📝 docs(readme): update notice board"
|
git commit --quiet -m "docs(readme): update notice board"
|
||||||
fi
|
fi
|
||||||
git push
|
git push
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,13 @@ jobs:
|
||||||
old_version=$(echo $file | cut -d'/' -f 3)
|
old_version=$(echo $file | cut -d'/' -f 3)
|
||||||
python3 .github/workflows/renovate-app-version.py $app_name $old_version
|
python3 .github/workflows/renovate-app-version.py $app_name $old_version
|
||||||
fi
|
fi
|
||||||
|
if [[ $file == *"/scripts/"*.sh ]]; then
|
||||||
|
app_name=$(echo $file | cut -d'/' -f 2)
|
||||||
|
old_version=$(echo $file | cut -d'/' -f 3)
|
||||||
|
new_version=$(grep -P -o '[\S]+=[\S]+:\K[\S]+' $file | head -1)
|
||||||
|
mv apps/$app_name/$old_version apps/$app_name/$new_version
|
||||||
|
echo $new_version > apps/$app_name/${old_version}.version
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Commit & Push Changes
|
- name: Commit & Push Changes
|
||||||
|
|
@ -91,7 +98,7 @@ jobs:
|
||||||
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
||||||
commits_counter=0
|
commits_counter=0
|
||||||
for file in "${files[@]}"; do
|
for file in "${files[@]}"; do
|
||||||
if [[ $file == *"docker-compose.yml"* ]]; then
|
if [[ $file == *"docker-compose.yml"* || $file == *"/scripts/"*.sh ]]; then
|
||||||
app_name=$(echo $file | cut -d'/' -f 2)
|
app_name=$(echo $file | cut -d'/' -f 2)
|
||||||
old_version=$(echo $file | cut -d'/' -f 3)
|
old_version=$(echo $file | cut -d'/' -f 3)
|
||||||
if [ -f "apps/$app_name/${old_version}.version" ]; then
|
if [ -f "apps/$app_name/${old_version}.version" ]; then
|
||||||
|
|
|
||||||
|
|
@ -308,5 +308,17 @@
|
||||||
"allowedVersions": "/^1.*/"
|
"allowedVersions": "/^1.*/"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"customManagers": [
|
||||||
|
{
|
||||||
|
"description": "处理 shell 脚本中的镜像",
|
||||||
|
"customType": "regex",
|
||||||
|
"managerFilePatterns": ["/(^|/).+\\.sh$/"],
|
||||||
|
"matchStrings": [
|
||||||
|
// 调试正则表达式: https://regexr.com/8jlns
|
||||||
|
"([\\S]+=)(?<depName>[\\S]+):(?<currentValue>[\\S]+)"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}docker{{/if}}"
|
||||||
|
}
|
||||||
|
],
|
||||||
"prCreation": "immediate"
|
"prCreation": "immediate"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue