Skip to content

Commit e636e95

Browse files
Phlogistiqueclaude
andauthored
Update runner and provisioner versions (#16)
* Preserve test repo on E2E failure for debugging * Enable GitHub Actions on test repo after creation GitHub Actions may be disabled by default on repos created from within a CI environment. Explicitly enable it via the API after repo creation. --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4f46bd6 commit e636e95

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
env:
3434
GH_APP_ID: ${{ vars.GH_APP_ID }}
3535
GH_APP_PRIVATE_KEY_PEM_B64: ${{ secrets.GH_APP_PRIVATE_KEY_PEM_B64 }}
36+
PRESERVE_ON_FAILURE: "1"
3637
run: |
3738
export GH_TOKEN=$(uv run tests/get_github_app_token.py)
3839
gh auth setup-git

tests/test_e2e.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@ echo >&2 "2. Creating remote GitHub repository: $REPO_FULL_NAME"
458458

459459
log_cmd gh repo create "$REPO_FULL_NAME" --description "Temporary E2E test repo for update-pr-stack action" --public
460460
echo >&2 "Successfully created $REPO_FULL_NAME"
461+
462+
# Enable GitHub Actions on the new repository (may be disabled by default in CI environments)
463+
echo >&2 "Enabling GitHub Actions on the repository..."
464+
log_cmd gh api -X PUT "/repos/$REPO_FULL_NAME/actions/permissions" --input - <<< '{"enabled":true,"allowed_actions":"all"}'
465+
461466
# 3. Push initial state
462467
echo >&2 "3. Pushing initial state to remote..."
463468
REMOTE_URL="https://github.com/$REPO_FULL_NAME.git"

0 commit comments

Comments
 (0)