Update README #46
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
name: Update README | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download new README | |
run: | | |
wget -O new-readme.md http://code.gouv.fr/data/awesome-codegouvfr.md | |
- name: Replace README | |
run: | | |
mv new-readme.md README.md | |
- name: Commit and push | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Bastien Guerry" | |
git add README.md | |
git diff --quiet || (git commit -m "Update README from http://code.gouv.fr/data/awesome-codegouvfr.md") | |
git push -f origin main |