File tree 5 files changed +67
-73
lines changed
5 files changed +67
-73
lines changed Original file line number Diff line number Diff line change 1
1
name : update README
2
2
3
3
env :
4
- JULIA_NUM_THREADS : 2
4
+ PYTHONUNBUFFERED : 1
5
5
6
6
on :
7
7
push :
@@ -17,14 +17,16 @@ jobs:
17
17
- name : Github checkout
18
18
uses : actions/checkout@v2
19
19
20
- - name : Install julia
21
- uses : julia-actions/setup-julia@latest
20
+ - name : Install Python
21
+ uses : actions/setup-python@v4
22
+ with :
23
+ python-version : ' 3.x'
22
24
23
25
- name : Generate README.md
24
- run : julia main.jl
26
+ run : python main.py
25
27
26
28
- name : Commit
27
29
uses : stefanzweifel/git-auto-commit-action@v5
28
30
with :
29
31
commit_message : Automated commit
30
- branch : main
32
+ branch : main
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- <!-- - 2024-12-02T08:44:52.907 --->
2
-
1
+ <!-- - 2025-03-25 11:10:31.562897 --->
3
2
``` shell
4
3
> cat user.json
5
4
```
18
17
"age" : 21 ,
19
18
"location" : " France" ,
20
19
"activities" : [
21
- " web developper " ,
20
+ " web developer " ,
22
21
" student"
23
22
]
24
23
}
25
24
}
26
25
```
27
26
28
- <a href =" https://gael-lopes-da-silva.github.io/portfolio/ " ><kbd ><br >  ; <b >Portfolio</b >  ; <br ><br ></kbd ></a >
29
- <img align =" right " style =" width : 37px ;" title =" Behold the yellow dancing man. Do not question him! " alt =" Alas, he went... " src =" ./assets/yellow_man.gif " >
27
+ <a href =" https://gael-lopes-da-silva.github.io/portfolio/ " >
28
+ <kbd>
29
+ <br> <b>Portfolio</b> <br><br>
30
+ </kbd>
31
+ </a >
32
+ <img align =" right " style =" width : 37px ;" title =" Behold the yellow dancing man! " alt =" Too bad, he gone... " src =" ./assets/yellow_man.gif " >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # @author: Gael Lopes Da Silva
2
+ # @project: gael-lopes-da-silva
3
+ # @github: https://github.com/Gael-Lopes-Da-Silva/gael-lopes-da-silva
4
+
5
+ from datetime import date , datetime
6
+
7
+ def get_age ():
8
+ birth_date = date (2003 , 6 , 19 )
9
+ current_date = date .today ()
10
+ age = current_date .year - birth_date .year - ((current_date .month , current_date .day ) < (birth_date .month , birth_date .day ))
11
+ return str (age )
12
+
13
+ def main ():
14
+ text = f"""<!--- { datetime .now ()} --->
15
+ ```shell
16
+ > cat user.json
17
+ ```
18
+
19
+ ```json
20
+ {{
21
+ "message": {{
22
+ "icon": "🙌",
23
+ "content": "Welcome to my GitHub profile page"
24
+ }},
25
+ "informations": {{
26
+ "name": {{
27
+ "firstname": "Gaël",
28
+ "lastname": "Lopes Da Silva"
29
+ }},
30
+ "age": { get_age ()} ,
31
+ "location": "France",
32
+ "activities": [
33
+ "web developer",
34
+ "student"
35
+ ]
36
+ }}
37
+ }}
38
+ ```
39
+
40
+ <a href="https://gael-lopes-da-silva.github.io/portfolio/">
41
+ <kbd>
42
+ <br> <b>Portfolio</b> <br><br>
43
+ </kbd>
44
+ </a>
45
+ <img align="right" style="width: 37px;" title="Behold the yellow dancing man!" alt="Too bad, he gone..." src="./assets/yellow_man.gif">
46
+ """
47
+
48
+ with open ("README.md" , "w" ) as file :
49
+ file .write (text )
50
+
51
+ if __name__ == "__main__" :
52
+ main ()
You can’t perform that action at this time.
0 commit comments