Skip to content

Commit e6394ce

Browse files
committed
fix workflow dispatch image generation
1 parent 5625ad4 commit e6394ce

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
- name: Check if we need to generate thumbnails
2929
id: check_changes
3030
run: |
31-
if ! git diff --name-only HEAD^ HEAD | grep -q "assets/images/fulls/"; then
32-
echo "No changes detected in assets/images/fulls/, skipping thumbnail generation"
33-
echo "changes_detected=false" >> $GITHUB_OUTPUT
31+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]] || git diff --name-only HEAD^ HEAD | grep -q "assets/images/fulls/"; then
32+
echo "Changes detected in assets/images/fulls/ or workflow dispatched manually, generating thumbnails"
33+
echo "changes_detected=true" >> $GITHUB_OUTPUT
3434
exit 0
3535
fi
36-
echo "Changes detected in assets/images/fulls/, generating thumbnails"
37-
echo "changes_detected=true" >> $GITHUB_OUTPUT
38-
36+
echo "No changes detected in assets/images/fulls/, skipping thumbnail generation"
37+
echo "changes_detected=false" >> $GITHUB_OUTPUT
38+
3939
- name: Install FUSE and ImageMagick 7
4040
if: steps.check_changes.outputs.changes_detected == 'true'
4141
run: |
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
rm archive/README.md
6767
{
68-
echo "[//]: # (This file is managed by the update_image_archive_list.yml GitHub Action. Changes will be overwritten.)"
68+
echo "[//]: # (This file is managed by the generate-list step in the deploy GitHub Action. Changes will be overwritten.)"
6969
echo "# Image Archive Gallery"
7070
echo ""
7171
echo "Thank you for taking the time to view our gallery, exploring some of the photographic history of our band. We hope you enjoy the images of our band members and performances."

0 commit comments

Comments
 (0)