Hakai CKAN Record Checks #26
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: Hakai CKAN Record Checks | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install . | |
- name: Run Hakai CKAN Record Checks | |
run: python hakai_ckan_records_checks -c https://catalogue.hakai.org --no-cache | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Hakai CKAN Record Checks Artifact | |
path: output/ | |
- name: Publish artifact as GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: output/ |