Skip to content

Commit d73ffa5

Browse files
fix: Update release routing logic
1 parent 04be969 commit d73ffa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/router.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ jobs:
1818
run: |
1919
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" && "${GITHUB_REF##*/}" == "main" ]]; then
2020
echo "target=latest" >> $GITHUB_OUTPUT
21-
else
21+
# only run on all pushes or pull requests from forks
22+
elif [[ "$GITHUB_EVENT_NAME" == "push" ]] || [[ "$GITHUB_HEAD_REPO" != "$GITHUB_REPOSITORY" ]]; then
2223
echo "target=feature" >> $GITHUB_OUTPUT
24+
else
25+
echo "target=skip" >> $GITHUB_OUTPUT
2326
fi
2427
2528
run-feature:

0 commit comments

Comments
 (0)