Skip to content

.github/workflows/import.yml #848

.github/workflows/import.yml

.github/workflows/import.yml #848

Workflow file for this run

on:
schedule:
- cron: "12 3 * * *"
workflow_dispatch:
jobs:
import:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Run import.php
run: php data/import.php
- name: Commit and push
run: |
if git diff --exit-code data/data.php; then
echo "Aborting action, remote data has not changed."
exit 0
fi
git config user.name github-actions
git config user.email github-actions@github.com
git commit -m "Update data.php" data/data.php
git push