Skip to content

Commit 82efbc8

Browse files
workflow fix
1 parent f5e36be commit 82efbc8

3 files changed

Lines changed: 22 additions & 164 deletions

File tree

.github/workflows/sync-element-web.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ jobs:
7777
- name: Prepare changelog for issue
7878
if: steps.release.outputs.skip != 'true'
7979
run: |
80-
# Extract content up to the second occurrence of "Changes in"
81-
awk '/Changes in/{c++; if(c==2) exit} {print}' ./processed/CHANGELOG.md > ./changelog-excerpt.md
82-
echo "Truncated changelog created"
80+
# Fetch release notes from GitHub API
81+
curl -s https://api.github.com/repos/element-hq/element-web/releases/tags/${{ steps.release.outputs.tag }} \
82+
| jq -r '.body' > ./changelog-excerpt.md
83+
echo "Release notes fetched from GitHub"
8384
8485
- name: Notify via GitHub issue
8586
if: steps.release.outputs.skip != 'true'

scripts/rename.sh

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,42 +24,30 @@ echo "Copied files from $SOURCE_DIR to $DEST_DIR"
2424
# Work in the destination directory
2525
BASE_DIR="$DEST_DIR"
2626

27-
FILES=(
28-
bold.b7f0698.svg copy.95010ef.svg forward.7d44a5b.svg location-pin-solid.5b99343.svg pop-out.0a8fde3.svg share-screen-solid.c7c1310.svg user-profile-solid.e886eb1.svg
29-
check.aaad650.svg delete.8165351.svg home-solid.88e9e19.svg lock-solid.6847293.svg public.0e971dd.svg strikethrough.17fd61f.svg video-call-declined-solid.0d66d74.svg
30-
check-circle.99c21d7.svg download.364c774.svg image.9142b42.svg mic-off-solid.b535c73.svg qr-code.b517d20.svg take-photo-solid.f40d394.svg video-call-missed-solid.f54bda6.svg
31-
chevron-down.9ea2899.svg error-solid.7cb2e4d.svg info.d42d785.svg mic-on-solid.5e29984.svg quote.60f93d6.svg text-formatting.0b0dd78.svg video-call-off-solid.8b0f3e2.svg
32-
chevron-left.18c22d7.svg expand.867af0b.svg info-solid.ef2d524.svg overflow-horizontal.e4b97af.svg reply.d3e6417.svg threads.52e135e.svg video-call-solid.d584e19.svg
33-
chevron-right.a1fc7b0.svg export-archive.f43ec04.svg inline-code.f51200e.svg pause-solid.a64b426.svg restart.514c8f1.svg threads-solid.7fe60f4.svg volume-on-solid.3f0544f.svg
34-
chevron-up.a7ca3bc.svg extensions-solid.4aa63de.svg italic.be1e35d.svg pin.7c59c5e.svg search.7258145.svg time.8c3060c.svg warning.80e5cc2.svg
35-
close.5ef7caf.svg favourite-solid.a1d4606.svg leave.8b03b57.svg play-solid.05663a6.svg send-solid.9074f92.svg unpin.bb6290d.svg
36-
collapse.fc765b9.svg files.453e84c.svg link.d0734d2.svg plus.95ca4d1.svg settings-solid.94c318a.svg user-add-solid.6a5ddef.svg
37-
)
38-
39-
for filename in "${FILES[@]}"; do
40-
# Escape regex special chars for sed
41-
ESCAPED_FILENAME=$(printf '%s' "$filename" | sed 's/[.[\*^$/]/\\&/g')
42-
43-
# Find all files containing this reference
44-
grep -rl "/icons/$filename" "$BASE_DIR" | while read -r file; do
45-
echo "Processing folder: $(dirname "$file")"
46-
sed -i "s|/icons/$ESCAPED_FILENAME|/ui-icons/$filename|g" "$file"
47-
echo "Updated: $file"
27+
echo ""
28+
echo "=== Processing icon references with regex ==="
29+
30+
# Process all CSS files in bundles directory
31+
if [ -d "$BASE_DIR/bundles" ]; then
32+
find "$BASE_DIR/bundles" -type f -name "*.css" | while read -r file; do
33+
if grep -q "/icons/" "$file" 2>/dev/null; then
34+
echo "Processing: $file"
35+
# Replace /icons/[anything].svg with /ui-icons/[anything].svg
36+
sed -i 's|/icons/\([^"'\''[:space:]]*\.svg\)|/ui-icons/\1|g' "$file"
37+
fi
4838
done
49-
done
39+
fi
5040

51-
# --- Handle index.html separately ---
41+
# Handle index.html (uses "icons/" without leading slash)
5242
INDEX_FILE="$BASE_DIR/index.html"
53-
5443
if [ -f "$INDEX_FILE" ]; then
55-
for filename in "${FILES[@]}"; do
56-
# Escape regex special chars for sed
57-
ESCAPED_FILENAME=$(printf '%s' "$filename" | sed 's/[.[\*^$/]/\\&/g')
58-
sed -i "s|icons/$ESCAPED_FILENAME|ui-icons/$filename|g" "$INDEX_FILE"
59-
done
60-
echo "Updated index.html"
44+
echo "Processing: $INDEX_FILE"
45+
sed -i 's|icons/\([^"'\''[:space:]]*\.svg\)|ui-icons/\1|g' "$INDEX_FILE"
6146
fi
6247

48+
echo "=== Completed processing ==="
49+
echo ""
50+
6351
# --- Rename icons folder to ui-icons ---
6452
ICON_DIR="$BASE_DIR/icons"
6553
UI_ICON_DIR="$BASE_DIR/ui-icons"

scripts/rename_bak.sh

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

0 commit comments

Comments
 (0)