mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-17 23:51:03 +08:00
Merge branch 'config' into localApps
This commit is contained in:
commit
a274359c96
2
.github/workflows/notice-board.yml
vendored
2
.github/workflows/notice-board.yml
vendored
@ -45,6 +45,6 @@ jobs:
|
||||
if git diff --cached --quiet; then
|
||||
echo "没有文件变更,跳过提交"
|
||||
else
|
||||
git commit --quiet -m "📝 docs(readme): update notice board"
|
||||
git commit --quiet -m "docs(readme): update notice board"
|
||||
fi
|
||||
git push
|
||||
|
||||
9
.github/workflows/renovate-app-version.yml
vendored
9
.github/workflows/renovate-app-version.yml
vendored
@ -84,6 +84,13 @@ jobs:
|
||||
old_version=$(echo $file | cut -d'/' -f 3)
|
||||
python3 .github/workflows/renovate-app-version.py $app_name $old_version
|
||||
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
|
||||
|
||||
- name: Commit & Push Changes
|
||||
@ -91,7 +98,7 @@ jobs:
|
||||
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
||||
commits_counter=0
|
||||
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)
|
||||
old_version=$(echo $file | cut -d'/' -f 3)
|
||||
if [ -f "apps/$app_name/${old_version}.version" ]; then
|
||||
|
||||
@ -308,5 +308,17 @@
|
||||
"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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user