Skip to content

Commit 8e2a7c8

Browse files
fix: resolve workflow dispatch HTTP 403 errors in automated workflows (#408)
* ci: prevent workflows from running when triggered by github-actions bot Add condition to skip workflow execution when github.actor is github-actions[bot] to prevent infinite loops and unnecessary runs from automated processes. - Add condition to extension-ci.yml test job - Add condition to tests.yml test job (GitHub Copilot) * fix: remove workflow dispatch calls that cause HTTP 403 errors - Remove manual workflow trigger commands that fail with 'Resource not accessible by integration' - Rely on GitHub's automatic test triggering when PRs are created - Improve messaging to clarify that tests run automatically - Increase wait time for PR creation to complete before enabling auto-merge - Fixes the deployment issue where package-extension workflow was failing (GitHub Copilot)
1 parent 84b6a4b commit 8e2a7c8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/daily-version.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ jobs:
5757
# Get the PR number from the previous step
5858
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"
60+
echo "Created PR #$PR_NUMBER for release/$NEW_VERSION"
61+
echo "Tests will be triggered automatically by the PR creation"
6362
64-
# Wait a moment for the workflow to start
65-
sleep 10
63+
# Wait a moment for the PR to be fully created and tests to start
64+
sleep 15
6665
6766
gh pr merge $PR_NUMBER --auto --squash
6867
echo "Auto-merge enabled for PR #$PR_NUMBER"

.github/workflows/package-extension.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,17 @@ jobs:
7979
**Changes:**
8080
- Bump version from previous version to v$NEW_VERSION in package.json
8181
82-
This PR was automatically created by the package-extension workflow." \
82+
This PR was automatically created by the package-extension workflow.
83+
84+
Tests will run automatically when the PR is created." \
8385
--base main \
8486
--head "$BRANCH_NAME")
8587
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"
88+
echo "Created PR: $PR_URL"
89+
echo "Tests will be triggered automatically by the PR creation"
8990
90-
# Wait a moment for the workflow to start
91-
sleep 10
91+
# Wait a moment for the PR to be fully created and tests to start
92+
sleep 15
9293
9394
# Enable auto-merge with squash strategy
9495
gh pr merge "$PR_URL" --auto --squash

0 commit comments

Comments
 (0)