37 lines
960 B
YAML
37 lines
960 B
YAML
name: "Housekeeping"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/workflows/housekeeping.yaml"
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
|
|
jobs:
|
|
housekeeping:
|
|
runs-on: ubuntu-latest
|
|
name: "Housekeeping"
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.BOT_TOKEN }}
|
|
|
|
- name: Containers - Fetch new application versions
|
|
run: |
|
|
find ./apps -maxdepth 1 -mindepth 1 -type d -exec basename {} \; | while read app; do
|
|
bash ./.github/scripts/update-version-file.sh "${app}"
|
|
done
|
|
|
|
- name: Commit and Push Housekeeping
|
|
run: |
|
|
git config user.name "TrueCharts-Bot"
|
|
git config user.email "bot@truecharts.org"
|
|
git add --all
|
|
git commit -sm "Daily Housekeeping" || exit 0
|
|
git push
|