Skip to content

Commit

Permalink
ci: try using bash for pushing on windows; ignore phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Jan 2, 2025
1 parent 693f05a commit 73ab190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ jobs:
git add lib/
git commit -m "Auto-build: Update extensions [skip ci]" || echo "No changes to commit"
- name: Push files (Unix)
if: runner.os != 'Windows'
- name: Push files
shell: bash
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
for attempt in {1..3}; do
Expand All @@ -99,7 +99,3 @@ jobs:
echo "Failed to push changes after 3 attempts."
exit 1
- name: Push files (Windows)
if: runner.os == 'Windows'
run: git pull --rebase && git push
2 changes: 1 addition & 1 deletion src/Features/DisallowSqliteAttach.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function loadExtension(PDO $pdo): bool
return false;
}

$pdo->loadExtension(static::$extensionPath);
$pdo->loadExtension(static::$extensionPath); // @phpstan-ignore method.notFound

return true;
}
Expand Down

0 comments on commit 73ab190

Please sign in to comment.