appstore-1panel/.github/workflows/process-apps.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

name: Process Apps and Commit Changes
on:
push:
branches:
- appstore
pull_request:
branches:
- appstore
workflow_dispatch:
jobs:
process:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Run processing script
run: python process-apps.py
- name: Verify generated directories
run: |
ls -R appstore || echo "appstore not created"
ls -R dockge || echo "dockge not created"
- name: Configure Git
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git fetch origin appstore
git rebase origin/appstore
git add appstore dockge || echo "No changes to add"
git diff --cached --quiet && echo "No changes to commit" || git commit -m "Processed apps directory via GitHub Actions"
git push origin appstore