Skip to content

Commit cf3343a

Browse files
committed
.github/workflows: Update
1 parent 744886a commit cf3343a

File tree

2 files changed

+33
-35
lines changed

2 files changed

+33
-35
lines changed

.github/workflows/publish-json.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/update.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update README
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-readme:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Download new README
20+
run: |
21+
wget -O new-readme.md http://code.gouv.fr/data/awesome-codegouvfr.md
22+
23+
- name: Replace README
24+
run: |
25+
mv new-readme.md README.md
26+
27+
- name: Commit and push
28+
run: |
29+
git config --local user.email "[email protected]"
30+
git config --local user.name "Bastien Guerry"
31+
git add README.md
32+
git commit -m "Update README from http://code.gouv.fr/data/awesome-codegouvfr.md"
33+
git push

0 commit comments

Comments
 (0)