Skip to content

Commit

Permalink
Merge pull request #124 from php-etl/fix/delete-old-action-files
Browse files Browse the repository at this point in the history
delete previous "action[...].php" files before building
  • Loading branch information
clemzarch authored Oct 10, 2023
2 parents 8edfc6a + c5c25e9 commit 247b399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Adapter/Filesystem/SatelliteBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ private function clearPreviousFiles(): void
$iterator = new \AppendIterator();

$iterator->append(new \GlobIterator($this->workdir.'/pipeline*.php', \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS));
$iterator->append(new \GlobIterator($this->workdir.'/action*.php', \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS));
$iterator->append(new \GlobIterator($this->workdir.'/ProjectServiceContainer*.php', \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS));

foreach ($iterator as $file) {
Expand Down

0 comments on commit 247b399

Please sign in to comment.