Skip to content

Refresh Volumes

Refresh Volumes #23

Workflow file for this run

name: Dataset Refresh
on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight UTC. You can customize the schedule using cron syntax.
workflow_dispatch: # This allows manual triggering from the GitHub Actions UI.
jobs:
build_and_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: |
cd api-parser
npm install
- name: Refresh datasets
run: |
cd api-parser
npm start
- name: Commit and push changes
run: |
git config --global user.name "Adam Setch"
git config --global user.email "[email protected]@example.com"
git add .
git commit -m "Automated dataset refresh - $(date +'%Y-%m-%d')"
git push
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: weekly-build # Change this to the branch name where you want to raise the PR.
commit-message: "Automated dataset refresh - $(date +'%Y-%m-%d')"
title: "Automated dataset refresh - $(date +'%Y-%m-%d')"
body: 'Automated dataset refresh'