Skip to content

Commit

Permalink
Update vectors.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brunurb authored Nov 20, 2024
1 parent f14a645 commit dac8000
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/vectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: vectors
on:
push:
paths:
- 'brunurb.github.io/Mansonery/files/images/**'
- 'majortom/vectors.html'
workflow_dispatch:

Expand All @@ -14,6 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Checkout other repository
uses: actions/checkout@v2
with:
repository: brunurb/brunurb.github.io
path: brunurb.github.io

- name: Generate vectors.html
run: |
echo "Generating vectors.html..."
Expand Down Expand Up @@ -63,8 +68,9 @@ jobs:
echo '<div id="myMosaic">' >> majortom/vectors.html
# Correctly add images inside the myMosaic div
for img in $(ls majortom/vectors/pictures | grep -E '\.jpeg$|\.jpg$|\.gif$|\.svg$|\.png$|\.webp$'); do
echo "<img src='https://brunurb.github.io/majortom/vectors/pictures/$img' alt='Gallery Image' data-full='https://brunurb.github.io/majortom/vectors/pictures/$img' class='thumbnail' onclick='showImage(this.dataset.full)' />" >> majortom/vectors.html
for img in $(ls brunurb.github.io/Mansonery/files/images | grep -E '\.jpeg$|\.jpg$|\.gif$|\.svg$|\.png$|\.webp$'); do
raw_url="https://raw.githubusercontent.com/brunurb/brunurb.github.io/master/Mansonery/files/images/$img"
echo "<img src='$raw_url' alt='Gallery Image' data-full='$raw_url' class='thumbnail' onclick='showImage(this.dataset.full)' />" >> majortom/vectors.html
done
echo '</div>' >> majortom/vectors.html
Expand Down

0 comments on commit dac8000

Please sign in to comment.