Skip to content

Update Data

Update Data #26500

Workflow file for this run

---
name: Update Data
on:
push:
branches:
- main
schedule:
- cron: '0 * * * *' # Hourly
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update && sudo apt install ruby-nokogiri git
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
ruby ./generate-flatpak.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