Skip to content

Commit 1e5fff1

Browse files
committed
fixup
1 parent 559115b commit 1e5fff1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/check-kernel-release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)