Skip to content

Commit c747029

Browse files
fix: Correct variable usage in release routing logic
1 parent d73ffa5 commit c747029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/router.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
- name: Route release
1717
id: route
1818
run: |
19+
HEAD_REPO="${{ github.event.pull_request.head.repo.full_name }}"
1920
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" && "${GITHUB_REF##*/}" == "main" ]]; then
2021
echo "target=latest" >> $GITHUB_OUTPUT
2122
# only run on all pushes or pull requests from forks
22-
elif [[ "$GITHUB_EVENT_NAME" == "push" ]] || [[ "$GITHUB_HEAD_REPO" != "$GITHUB_REPOSITORY" ]]; then
23+
elif [[ "$GITHUB_EVENT_NAME" == "push" ]] || [[ "$HEAD_REPO" != "$GITHUB_REPOSITORY" ]]; then
2324
echo "target=feature" >> $GITHUB_OUTPUT
2425
else
2526
echo "target=skip" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)