Skip to content

Commit c65bc2f

Browse files
fix: force rebuild if workflow file has changed
1 parent 32a9eb4 commit c65bc2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/create-sample-releases.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ jobs:
104104
echo "📝 Changed files:"
105105
echo "$CHANGED_FILES"
106106
107+
# Check if the workflow file itself was changed
108+
if echo "$CHANGED_FILES" | grep -q "^\.github/workflows/create-sample-releases\.yml$"; then
109+
echo "🔧 Workflow file changed - forcing rebuild of all samples"
110+
echo "SHOULD_BUILD=true" >> $GITHUB_ENV
111+
exit 0
112+
fi
113+
107114
SHOULD_BUILD=false
108115
109116
for config_dir in $CONFIG_DIRS; do

0 commit comments

Comments
 (0)