同步上游bot

This commit is contained in:
okxlin 2023-11-09 18:55:13 +08:00
parent 51c7c0ca88
commit 7978b863c9
2 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,6 @@
name: Update app version in Renovate Branches name: Update app version in Renovate Branches
on: on:
schedule:
- cron: "0 0 * * *"
push: push:
branches: [ 'renovate/*' ] branches: [ 'renovate/*' ]
workflow_dispatch: workflow_dispatch:
@ -10,7 +8,6 @@ on:
manual-trigger: manual-trigger:
description: 'Manually trigger Renovate' description: 'Manually trigger Renovate'
default: '' default: ''
jobs: jobs:
update-app-version: update-app-version:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -50,6 +47,6 @@ jobs:
for file in "${files[@]}"; do for file in "${files[@]}"; do
if [[ $file == *"docker-compose.yml"* ]]; then if [[ $file == *"docker-compose.yml"* ]]; then
app_name=$(echo $file | cut -d'/' -f 2) app_name=$(echo $file | cut -d'/' -f 2)
git add "apps/$app_name/*" && git commit -m "Update app version" --no-verify && git push || true git add "apps/$app_name/*" && git commit -m "Update app version [skip ci]" --no-verify && git push || true
fi fi
done done

View File

@ -2,7 +2,7 @@ name: Renovate
on: on:
schedule: schedule:
- cron: "0 */6 * * *" - cron: "0 0 * * *"
push: push:
branches: branches:
- localApps - localApps