This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
authored
Jun 22, 2023
1 parent
9fc789f
commit dfeba68
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,12 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }} | ||
|
||
- name: Download data | ||
id: download | ||
continue-on-error: true | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y curl git | ||
|
@@ -35,10 +38,13 @@ jobs: | |
mv ./WEEZ.csv.gz ./data/WEEZ.csv.gz | ||
else | ||
echo "File not changed" | ||
rm ./WEEZ.csv.gz | ||
exit 1 | ||
fi; | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
if: steps.download.outcome == 'success' | ||
with: | ||
commit_message: "fix: Update datagouv data" | ||
commit_author: "GitHub bot <[email protected]>" |