@@ -12,8 +12,10 @@ inputs:
1212outputs :
1313 proceed :
1414 description : " 'true' if this is a normal commit, 'false' if it's a PR merge/squash"
15+ value : ${{ steps.prcheck.outputs.proceed }}
1516 pr_numbers :
1617 description : " List of PR numbers associated with this commit (if any)"
18+ value : ${{ steps.prcheck.outputs.pr_numbers }}
1719
1820runs :
1921 using : composite
6062 echo "Found $pr_count merged PR(s) associated with this commit → skip"
6163 pr_numbers=$(echo "$search_result" | jq -r '.items[].number')
6264 echo "PR Numbers: $pr_numbers"
63- # Явно устанавливаем output для GitHub Actions
64- echo "pr_numbers=$pr_numbers" >> $GITHUB_OUTPUT
65- echo "proceed=false" >> $GITHUB_OUTPUT
65+ # Используем современный способ установки output для GitHub Actions
66+ echo "pr_numbers=$pr_numbers" >> " $GITHUB_OUTPUT"
67+ echo "proceed=false" >> " $GITHUB_OUTPUT"
6668 exit 0
6769 fi
6870 fi
@@ -73,14 +75,14 @@ runs:
7375 echo "Found $count PR(s) — this is a merge/squash → skip"
7476 pr_numbers=$(echo "$response" | jq -r '.[].number')
7577 echo "PR Numbers: $pr_numbers"
76- # Явно устанавливаем output для GitHub Actions
77- echo "pr_numbers=$pr_numbers" >> $GITHUB_OUTPUT
78- echo "proceed=false" >> $GITHUB_OUTPUT
78+ # Используем современный способ установки output для GitHub Actions
79+ echo "pr_numbers=$pr_numbers" >> " $GITHUB_OUTPUT"
80+ echo "proceed=false" >> " $GITHUB_OUTPUT"
7981 else
8082 echo "No PR associated → normal commit"
81- # Явно устанавливаем output для GitHub Actions
82- echo "proceed=true" >> $GITHUB_OUTPUT
83- echo "pr_numbers=" >> $GITHUB_OUTPUT
83+ # Используем современный способ установки output для GitHub Actions
84+ echo "proceed=true" >> " $GITHUB_OUTPUT"
85+ echo "pr_numbers=" >> " $GITHUB_OUTPUT"
8486 # Выводим и на экран для отладки
85- echo "Set proceed=true"
87+ echo "Set proceed=true in output "
8688 fi
0 commit comments