Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore: autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jun 22, 2023
1 parent 7e05fa0 commit 62282f9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update-datagouv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,24 @@ jobs:
echo "Check validity"
cat ./WEEZ.csv | grep 78012998704037
# check if its a new file
gzip ./WEEZ.csv
DIFFED=$(diff ./WEEZ.csv.gz ./data/WEEZ.csv.gz) || true
if [[ $DIFFED ]]; then
gunzip ./data/WEEZ.csv.gz
if [[ $(diff ./WEEZ.csv ./data/WEEZ.csv) ]]; then
echo "File changed"
gzip -v ./WEEZ.csv
gzip -t ./WEEZ.csv.gz
echo "move"
mv ./WEEZ.csv.gz ./data/WEEZ.csv.gz
exit 0
else
echo "File not changed"
rm ./WEEZ.csv.gz
rm ./WEEZ.csv
exit 1
fi;
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
if: steps.download.outcome == 'success'
with:
file_pattern: "data/*"
commit_message: "fix: Update datagouv data"
commit_author: "GitHub bot <[email protected]>"

0 comments on commit 62282f9

Please sign in to comment.