Skip to content

Commit

Permalink
Add Workflow to update dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed May 26, 2024
1 parent b222211 commit 697f464
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/scheduled-data-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Data Update

on:
push:
workflow_dispatch:
schedule:
- cron: "0 14 20 * *"

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: asdasd
run: php app update-cities-dataset

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: 'Cities Dataset has been updated'
branch: data-update

0 comments on commit 697f464

Please sign in to comment.