Skip to content

Commit dfbb2ee

Browse files
committed
add action to download and commit considerations csv
1 parent a509f7c commit dfbb2ee

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Download and commit considerations CSV
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
download_and_commit:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Download file
17+
run: |
18+
curl -o data/planning-considerations.csv https://considerations.planning-data.dev/planning-consideration/planning-considerations.csv
19+
20+
- name: Set up git
21+
run: |
22+
git config --global user.name 'github-actions[bot]'
23+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
24+
25+
- name: Commit and push changes
26+
run: |
27+
git add data/planning-considerations.csv
28+
git commit -m "Add downloaded planning-considerations.csv file"
29+
git push
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)