Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSchalk committed Nov 27, 2023
2 parents 63842a7 + 73d241c commit aa40e09
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/backup_queries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update Queries

on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:

jobs:
update_queries:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
pip install requests
- name: Run update script
run: retrieve-queries.py
env:
API_URL: https://api.linkeddata.cultureelerfgoed.nl/queries/
OUTPUT_FOLDER: "${{ github.workspace }}/LDV"

- name: Commit and push changes
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Automated update of sparql queries"
git push

0 comments on commit aa40e09

Please sign in to comment.