Skip to content

Commit

Permalink
update files workflow create
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Oct 30, 2024
1 parent 988bd09 commit abf6c96
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
26 changes: 26 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update Data
on:
schedule:
- cron: '0 0,12 * * *'

jobs:
update:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4

# Other steps that change files in the repository

- name: Update files
run: |
curl -o data/chateaus.json -f https://birch.catenarymaps.org/getchateaus
curl -o data/agencies.json -f https://birch.catenarymaps.org/get_agencies
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5

0 comments on commit abf6c96

Please sign in to comment.