Skip to content

Regenerate App Data #1963

Regenerate App Data

Regenerate App Data #1963

Workflow file for this run

---
name: Regenerate App Data
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '_config.yaml'
- 'appstream.xml'
- 'generate-eos-apps.rb'
- '.github/workflows/'
- 'images/icons/'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update && sudo apt install ruby-nokogiri ruby-crack git
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
rm _apps/*
ruby ./generate-eos-apps.rb
- name: Commit
run: |
FILES_CHANGED=$(git diff --name-only | wc -l)
if [[ $FILES_CHANGED != 0 ]]; then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Automatic update of data" -a
git push
fi