Skip to content

Commit 2ee8cb8

Browse files
CopilotDavidKRK
andauthored
fix: automation-suite.yml — date expansion, action pinning, lychee output, audit safety (#154)
* fix: improve automation-suite.yml reliability and security Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/4fa87663-6160-4fcd-a8fb-2aead55c153e Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> * fix: restore flex justify-center wrapper on social icons + sync HTML files with gh-pages Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/60b00350-27dd-4bdb-8b42-ebb8cd7adea5 Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
1 parent 87ed33e commit 2ee8cb8

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/automation-suite.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ jobs:
3737
- name: Update dependencies
3838
run: |
3939
npm update
40-
npm audit fix --force || true
40+
npm audit fix || true
41+
42+
- name: Get current date
43+
id: get_date
44+
run: echo "date=$(date +%Y-%m-%d)" >> "$GITHUB_OUTPUT"
4145

4246
- name: Create Pull Request
4347
uses: peter-evans/create-pull-request@v6
@@ -48,7 +52,7 @@ jobs:
4852
commit-message: 'chore: mise à jour automatique des dépendances npm'
4953
title: '🤖 Mise à jour automatique des dépendances'
5054
body: |
51-
Mise à jour automatique des dépendances npm effectuée le $(date +%Y-%m-%d)
55+
Mise à jour automatique des dépendances npm effectuée le ${{ steps.get_date.outputs.date }}
5256
5357
- Dépendances mises à jour via `npm update`
5458
- Corrections de sécurité appliquées via `npm audit fix`
@@ -68,7 +72,7 @@ jobs:
6872
ref: gh-pages
6973

7074
- name: Compress Images
71-
uses: calibreapp/image-actions@main
75+
uses: calibreapp/image-actions@v1
7276
with:
7377
githubToken: ${{ secrets.GITHUB_TOKEN }}
7478
compressOnly: true
@@ -87,13 +91,14 @@ jobs:
8791
ref: gh-pages
8892

8993
- name: Check for broken links
94+
id: lychee
9095
uses: lycheeverse/lychee-action@v2
9196
with:
9297
args: --verbose --no-progress '**/*.html' '**/*.md'
9398
fail: false
9499

95100
- name: Create issue if broken links found
96-
if: env.lychee_exit_code != 0
101+
if: steps.lychee.outputs.exit_code != 0
97102
uses: peter-evans/create-issue-from-file@v5
98103
with:
99104
title: '🔗 Liens morts détectés sur le site'

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ <h1 class="main-title">David KRK</h1>
109109
src="https://player-widget.mixcloud.com/widget/iframe/?hide_cover=1&hide_artwork=1&autoplay=1&feed=%2FDavidKRK%2Fdavid-krk-life-good-techno-ep3%2F"
110110
allow="autoplay; encrypted-media; fullscreen; idle-detection; speaker-selection; web-share"></iframe>
111111
</section>
112+
<div class="flex justify-center gap-6 mb-4">
112113
<a href="https://www.facebook.com/DavidKRKofficial" target="_blank" rel="noopener noreferrer" aria-label="Facebook"
113114
class="social-icon text-2xl md:text-3xl text-white"><i class="fab fa-facebook"></i></a>
114115
<a href="https://www.instagram.com/davidkrk/" target="_blank" rel="noopener noreferrer" aria-label="Instagram"

shop.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ <h2 class="mt-4">Офіційний магазин</h2>
170170
<img src="images/qr-tshirt-boutique.png" alt="QR‑код для замовлення офіційної футболки David KRK за 24,90 євро з доставкою">
171171
</div>
172172
</div>
173+
<div class="flex justify-center gap-6 mb-4">
173174
<a href="https://www.facebook.com/DavidKRKofficial" target="_blank" rel="noopener noreferrer" aria-label="Facebook"
174175
class="social-icon text-2xl md:text-3xl text-white"><i class="fab fa-facebook"></i></a>
175176
<a href="https://www.instagram.com/davidkrk/" target="_blank" rel="noopener noreferrer" aria-label="Instagram"

0 commit comments

Comments
 (0)