Regenerate App Data #1963
This file contains 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: 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 |