Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
env:
GH_APP_ID: ${{ vars.GH_APP_ID }}
GH_APP_PRIVATE_KEY_PEM_B64: ${{ secrets.GH_APP_PRIVATE_KEY_PEM_B64 }}
PRESERVE_ON_FAILURE: "1"
run: |
export GH_TOKEN=$(uv run tests/get_github_app_token.py)
gh auth setup-git
Expand Down
5 changes: 5 additions & 0 deletions tests/test_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ echo >&2 "2. Creating remote GitHub repository: $REPO_FULL_NAME"

log_cmd gh repo create "$REPO_FULL_NAME" --description "Temporary E2E test repo for update-pr-stack action" --public
echo >&2 "Successfully created $REPO_FULL_NAME"

# Enable GitHub Actions on the new repository (may be disabled by default in CI environments)
echo >&2 "Enabling GitHub Actions on the repository..."
log_cmd gh api -X PUT "/repos/$REPO_FULL_NAME/actions/permissions" --input - <<< '{"enabled":true,"allowed_actions":"all"}'

# 3. Push initial state
echo >&2 "3. Pushing initial state to remote..."
REMOTE_URL="https://github.com/$REPO_FULL_NAME.git"
Expand Down