Build Unified App Store #199
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Unified App Store | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| paths: | |
| - stores.json | |
| - featured.json | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: sudo apt-get install -y jq imagemagick | |
| - name: Fetch and merge all apps.json | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: ./build.sh | |
| - name: Generate icons for apps without icons | |
| env: | |
| FAL_AI_KEY: ${{ secrets.FAL_AI_KEY }} | |
| run: ./assets.sh --icons-only | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add apps.json assets/icons/ | |
| git diff --cached --quiet && exit 0 | |
| git commit -m "chore: rebuild apps.json ($(jq '.apps | length' apps.json) apps) + generate icons" | |
| git push |