Skip to content

update github actions #5

update github actions

update github actions #5

Workflow file for this run

name: Generate and Commit CSV
on:
schedule:
# Runs at 12:00 UTC every day
- cron: "0 12 * * *"
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install
run: npm install
- name: Run script
run: node index
- name: Commit and Push CSV
run: |
git add -f data/ckan-updates.csv
git commit -m "Update CSV file" || true # The script won't fail if there's nothing to commit
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}