Skip to content

Commit 10b49ce

Browse files
fix: add manual test workflow triggers for automated PRs (#402)
- Fix issue where GitHub Actions bot-created PRs don't automatically trigger test workflows - Add manual test workflow invocation in daily-version.yml before auto-merge - Add manual test workflow invocation in package-extension.yml before auto-merge - Include 10-second delay to allow workflows to start before enabling auto-merge - Resolves blocked PR state where tests show 'Expected — Waiting for status to be reported' Fixes automated PR test execution (GitHub Copilot)
1 parent c020e7e commit 10b49ce

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/daily-version.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,15 @@ jobs:
5555
if: env.NEW_VERSION
5656
run: |
5757
# Get the PR number from the previous step
58-
PR_NUMBER=$(gh pr list --head "release/${{ env.NEW_VERSION }}" --json number --jq '.[0].number')
58+
PR_NUMBER=$(gh pr list --head "release/$NEW_VERSION" --json number --jq '.[0].number')
5959
if [ -n "$PR_NUMBER" ]; then
60+
# Trigger the test workflow manually for this PR
61+
gh workflow run tests.yml --ref "release/$NEW_VERSION"
62+
echo "Triggered test workflow for branch release/$NEW_VERSION"
63+
64+
# Wait a moment for the workflow to start
65+
sleep 10
66+
6067
gh pr merge $PR_NUMBER --auto --squash
6168
echo "Auto-merge enabled for PR #$PR_NUMBER"
6269
fi

.github/workflows/package-extension.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,12 @@ jobs:
8383
--base main \
8484
--head "$BRANCH_NAME")
8585
86+
# Trigger the test workflow manually for this PR to ensure tests run
87+
gh workflow run tests.yml --ref "$BRANCH_NAME"
88+
echo "Triggered test workflow for branch $BRANCH_NAME"
89+
90+
# Wait a moment for the workflow to start
91+
sleep 10
92+
8693
# Enable auto-merge with squash strategy
8794
gh pr merge "$PR_URL" --auto --squash

0 commit comments

Comments
 (0)