chore: temporarily re-enable push trigger for sno-qa-* reruns

This commit is contained in:
snomiao
2026-04-05 16:17:00 +00:00
parent 8250fba394
commit 100f5ad18f

View File

@@ -10,6 +10,8 @@
name: 'PR: QA'
on:
push:
branches: [sno-qa-*]
pull_request:
types: [labeled]
branches: [main]
@@ -90,6 +92,9 @@ jobs:
NUM=$(gh pr list --repo "$REPO" \
--head "$BRANCH" --state open \
--json number --jq '.[0].number // empty')
if [ -z "$NUM" ]; then
NUM=$(echo "$BRANCH" | sed -n 's/^sno-qa-\([0-9]\+\)$/\1/p')
fi
fi
echo "number=${NUM}" >> "$GITHUB_OUTPUT"
@@ -473,7 +478,8 @@ jobs:
needs: [resolve-matrix, analyze-pr, qa-before, qa-after]
if: >-
always() &&
(needs.qa-after.result == 'success' || needs.qa-before.result == 'success')
(needs.qa-after.result == 'success' || needs.qa-before.result == 'success') &&
(github.event.pull_request.number || github.event.issue.number || github.event_name == 'push' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
permissions:
contents: write
@@ -650,6 +656,7 @@ jobs:
REPO: ${{ github.repository }}
run: |
NUM="${PR_NUM:-$(gh pr list --repo "$REPO" --head "$BRANCH" --state open --json number --jq '.[0].number // empty')}"
[ -z "$NUM" ] && NUM=$(echo "$BRANCH" | sed -n 's/^sno-qa-\([0-9]\+\)$/\1/p')
echo "number=${NUM}" >> "$GITHUB_OUTPUT"
if [ -n "$NUM" ]; then