Skip to content

Commit 56c9705

Browse files
Add temporary final portrait cleanup workflow
1 parent facf129 commit 56c9705

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Finalize Tetiana portrait repair
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/fix-tetiana-portrait-v2
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
finalize:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: agent/fix-tetiana-portrait-v2
18+
- name: Fix RU absolute path and portrait alt text
19+
shell: bash
20+
run: |
21+
set -euo pipefail
22+
python3 - <<'PY'
23+
from pathlib import Path
24+
25+
en = Path('about/index.html')
26+
text = en.read_text(encoding='utf-8')
27+
text = text.replace(
28+
'alt="Tetiana Horb, CEO of Financial Stream LLC, seated in a professional office setting"',
29+
'alt="Tetiana Horb, CEO of Financial Stream LLC"',
30+
)
31+
en.write_text(text, encoding='utf-8')
32+
33+
ru = Path('ru/about/index.html')
34+
text = ru.read_text(encoding='utf-8')
35+
text = text.replace('..//assets/img/team/tetiana-horb-ceo-approved.webp', '/assets/img/team/tetiana-horb-ceo-approved.webp')
36+
text = text.replace(
37+
'alt="Татьяна Горб, CEO, Financial Stream LLC, в профессиональной офисной обстановке"',
38+
'alt="Татьяна Горб, CEO, Financial Stream LLC"',
39+
)
40+
ru.write_text(text, encoding='utf-8')
41+
PY
42+
- name: Verify final references
43+
shell: bash
44+
run: |
45+
set -euo pipefail
46+
! grep -R -n '\.\./\/assets/img/team/tetiana-horb-ceo-approved.webp' about/index.html ru/about/index.html
47+
! grep -R -n 'seated in a professional office setting\|в профессиональной офисной обстановке' about/index.html ru/about/index.html
48+
grep -q 'src="/assets/img/team/tetiana-horb-ceo-approved.webp"' about/index.html
49+
grep -q 'src="/assets/img/team/tetiana-horb-ceo-approved.webp"' ru/about/index.html
50+
test "$(stat -c%s assets/img/team/tetiana-horb-ceo-approved.webp)" = "46188"
51+
echo "a4bd2076b9f23387da73713abab95ec504cc566df2de4579927324521e39852b assets/img/team/tetiana-horb-ceo-approved.webp" | sha256sum -c -
52+
- name: Remove temporary automation
53+
shell: bash
54+
run: |
55+
rm -f .github/workflows/finalize-tetiana-portrait-repair.yml
56+
rm -f .github/finalize-tetiana-trigger.txt
57+
- name: Commit final cleanup
58+
shell: bash
59+
run: |
60+
set -euo pipefail
61+
git config user.name "github-actions[bot]"
62+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
63+
git add -A
64+
git commit -m "Finalize canonical Tetiana portrait references"
65+
git push origin HEAD:agent/fix-tetiana-portrait-v2

0 commit comments

Comments
 (0)