1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 03:21:12 +08:00

🔧 chore(workflows): update github actions

- migrate from deprecated ::set-output to $GITHUB_OUTPUT syntax
- improve commit messages with app name and version details
- enhance commit message formatting with emoji and detailed version info
This commit is contained in:
pooneyy 2025-10-04 09:45:22 +08:00
parent f9af54b4a9
commit 4a30cf5fc8
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,7 @@ do
echo "将 apps/$app_name/$old_version 重命名为 apps/$app_name/$trimmed_version"
if [ ! -d "apps/$app_name/$trimmed_version" ]; then
mv apps/$app_name/$old_version apps/$app_name/$trimmed_version
echo "$trimmed_version" > apps/$app_name/${old_version}.version
else
echo "apps/$app_name/$trimmed_version 文件夹已存在"
exit 1

View File

@ -27,7 +27,7 @@ jobs:
- name: Get list of updated files by the last commit in this branch separated by space
id: updated-files
run: |
echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | tr '\n' ' ')"
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Run renovate-app-version.sh on updated files
run: |
@ -49,6 +49,9 @@ jobs:
for file in "${files[@]}"; do
if [[ $file == *"docker-compose.yml"* ]]; then
app_name=$(echo $file | cut -d'/' -f 2)
git add "apps/$app_name/*" && git commit -m "Update app version [skip ci]" --no-verify && git push || true
old_version=$(echo $file | cut -d'/' -f 3)
new_version=$(cat "apps/$app_name/${old_version}.version")
rm -f "apps/$app_name/${old_version}.version"
git add "apps/$app_name/*" && git commit -m "🔧 chore($app_name): update app version from $old_version to $new_version [skip ci]" --no-verify && git push || true
fi
done