Skip to content

Commit e96bacb

Browse files
committed
trigger item updates workflow when any item file changed
1 parent afea68d commit e96bacb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-items.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Check if item files changed
2222
id: file_check
2323
run: |
24-
if git diff --name-only ${{ github.event.workflow_run.head_sha }}^ ${{ github.event.workflow_run.head_sha }} | grep -q '^finders/items/data/item.txt$'; then
24+
if git diff --name-only ${{ github.event.workflow_run.head_sha }}^ ${{ github.event.workflow_run.head_sha }} \
25+
| grep -Eq '^(finders/items/data/item.txt|finders/items/data/id.txt|finders/items/items-imgs.zip)$'; then
2526
echo "changed=true" >> $GITHUB_OUTPUT
2627
else
2728
echo "changed=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)