Skip to content

Commit 5f809dc

Browse files
committed
yuikyfjthdgfsq
1 parent 8276a6f commit 5f809dc

1 file changed

Lines changed: 39 additions & 37 deletions

File tree

‎.github/workflows/3-last-step.yml‎

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -102,46 +102,48 @@ jobs:
102102
const shareBsky = `https://bsky.app/intent/compose?text=${enc}`;
103103
const shareLinkedIn = `https://www.linkedin.com/feed/?shareActive=true&text=${enc}`;
104104
105-
const block = `
106-
<div align="center">
107-
108-
# 🎉 Félicitations ${login} ! 🎉
109-
110-
<img src="https://octodex.github.com/images/welcometocat.png" height="200px" />
111-
112-
### 🌟 Tu as terminé l’exercice avec succès ! 🌟
113-
114-
## 🚀 Partage ta réussite
115-
116-
**Montre tes nouvelles compétences et inspire les autres !**
117-
118-
<a href="${shareX}" target="_blank" rel="noopener noreferrer">
119-
<img src="https://img.shields.io/badge/Partager%20sur%20X-1da1f2?style=for-the-badge&logo=x&logoColor=white" alt="Partager sur X" />
120-
</a>
121-
<a href="${shareBsky}" target="_blank" rel="noopener noreferrer">
122-
<img src="https://img.shields.io/badge/Partager%20sur%20Bluesky-0085ff?style=for-the-badge&logo=bluesky&logoColor=white" alt="Partager sur Bluesky" />
123-
</a>
124-
<a href="${shareLinkedIn}" target="_blank" rel="noopener noreferrer">
125-
<img src="https://img.shields.io/badge/Partager%20sur%20LinkedIn-0077b5?style=for-the-badge&logo=linkedin&logoColor=white" alt="Partager sur LinkedIn" />
126-
</a>
127-
128-
### 🎯 Et maintenant ?
129-
130-
**Garde l’élan !**
131-
132-
[![](https://img.shields.io/badge/Revenir%20%C3%A0%20l%27exercice-%E2%86%92-1f883d?style=for-the-badge&logo=github&labelColor=197935)](${repoUrl}/issues/${process.env.ISSUE_NUMBER})
133-
[![GitHub Skills](https://img.shields.io/badge/D%C3%A9couvrir%20GitHub%20Skills-000000?style=for-the-badge&logo=github&logoColor=white)](https://learn.github.com/skills)
134-
135-
*Il n’y a pas de meilleure façon d’apprendre que de construire des choses !* 🚀
136-
137-
</div>
138-
139-
---
140-
`.trim() + "\n";
105+
const lines = [
106+
'<div align="center">',
107+
'',
108+
'# 🎉 Félicitations ' + login + ' ! 🎉',
109+
'',
110+
'<img src="https://octodex.github.com/images/welcometocat.png" height="200px" />',
111+
'',
112+
'### 🌟 Tu as terminé l’exercice avec succès ! 🌟',
113+
'',
114+
'## 🚀 Partage ta réussite',
115+
'',
116+
'**Montre tes nouvelles compétences et inspire les autres !**',
117+
'',
118+
`<a href="${shareX}" target="_blank" rel="noopener noreferrer">`,
119+
' <img src="https://img.shields.io/badge/Partager%20sur%20X-1da1f2?style=for-the-badge&logo=x&logoColor=white" alt="Partager sur X" />',
120+
'</a>',
121+
`<a href="${shareBsky}" target="_blank" rel="noopener noreferrer">`,
122+
' <img src="https://img.shields.io/badge/Partager%20sur%20Bluesky-0085ff?style=for-the-badge&logo=bluesky&logoColor=white" alt="Partager sur Bluesky" />',
123+
'</a>',
124+
`<a href="${shareLinkedIn}" target="_blank" rel="noopener noreferrer">`,
125+
' <img src="https://img.shields.io/badge/Partager%20sur%20LinkedIn-0077b5?style=for-the-badge&logo=linkedin&logoColor=white" alt="Partager sur LinkedIn" />',
126+
'</a>',
127+
'',
128+
'### 🎯 Et maintenant ?',
129+
'',
130+
'**Garde l’élan !**',
131+
'',
132+
`[![](https://img.shields.io/badge/Revenir%20%C3%A0%20l%27exercice-%E2%86%92-1f883d?style=for-the-badge&logo=github&labelColor=197935)](${repoUrl}/issues/${process.env.ISSUE_NUMBER})`,
133+
'[![GitHub Skills](https://img.shields.io/badge/D%C3%A9couvrir%20GitHub%20Skills-000000?style=for-the-badge&logo=github&logoColor=white)](https://learn.github.com/skills)',
134+
'',
135+
'*Il n’y a pas de meilleure façon d’apprendre que de construire des choses !* 🚀',
136+
'',
137+
'</div>',
138+
'',
139+
'---',
140+
''
141+
];
142+
const block = lines.join('\n');
141143
142144
const readmePath = path.join(process.env.GITHUB_WORKSPACE, 'README.md');
143145
const current = fs.existsSync(readmePath) ? fs.readFileSync(readmePath, 'utf8') : '';
144-
fs.writeFileSync(readmePath, `${block}${current}`, 'utf8');
146+
fs.writeFileSync(readmePath, block + current, 'utf8');
145147
146148
- name: Commit and push final README
147149
shell: bash

0 commit comments

Comments
 (0)