File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,22 @@ jobs:
3636 echo "Infix kernel version: $INFIX_VERSION"
3737
3838 if [ "$CURRENT_VERSION" != "$INFIX_VERSION" ]; then
39- echo "new_release=true" >> $GITHUB_OUTPUT
40- echo "🎉 New 6.12 kernel released: $CURRENT_VERSION (infix version: $INFIX_VERSION)"
39+ # Check if there's already an open PR for this version
40+ PR_EXISTS=$(gh pr list --state open --search "Upgrade to kernel $CURRENT_VERSION in:title" --json number --jq 'length')
41+
42+ if [ "$PR_EXISTS" -gt 0 ]; then
43+ echo "new_release=false" >> $GITHUB_OUTPUT
44+ echo "PR already exists for kernel $CURRENT_VERSION, skipping"
45+ else
46+ echo "new_release=true" >> $GITHUB_OUTPUT
47+ echo "🎉 New 6.12 kernel released: $CURRENT_VERSION (infix version: $INFIX_VERSION)"
48+ fi
4149 else
4250 echo "new_release=false" >> $GITHUB_OUTPUT
4351 echo "No change - still at $CURRENT_VERSION"
4452 fi
53+ env :
54+ GH_TOKEN : ${{ secrets.KERNEL_UPDATE_TOKEN }}
4555
4656 - name : Set up git credentials
4757 if : steps.check.outputs.new_release == 'true'
You can’t perform that action at this time.
0 commit comments