We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73ffa5 commit c747029Copy full SHA for c747029
.github/workflows/router.yaml
@@ -16,10 +16,11 @@ jobs:
16
- name: Route release
17
id: route
18
run: |
19
+ HEAD_REPO="${{ github.event.pull_request.head.repo.full_name }}"
20
if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" && "${GITHUB_REF##*/}" == "main" ]]; then
21
echo "target=latest" >> $GITHUB_OUTPUT
22
# only run on all pushes or pull requests from forks
- elif [[ "$GITHUB_EVENT_NAME" == "push" ]] || [[ "$GITHUB_HEAD_REPO" != "$GITHUB_REPOSITORY" ]]; then
23
+ elif [[ "$GITHUB_EVENT_NAME" == "push" ]] || [[ "$HEAD_REPO" != "$GITHUB_REPOSITORY" ]]; then
24
echo "target=feature" >> $GITHUB_OUTPUT
25
else
26
echo "target=skip" >> $GITHUB_OUTPUT
0 commit comments