diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e05a571..15c7d34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -158,9 +158,6 @@ jobs: run: | ls -R | grep githooks ls - # ls githooks-71 - # ls githooks-73 - # ls githooks-81 - name: Extract and check builds run: | diff --git a/app/Commands/ExtractBuildCommand.php b/app/Commands/ExtractBuildCommand.php index 7d82704..810863b 100644 --- a/app/Commands/ExtractBuildCommand.php +++ b/app/Commands/ExtractBuildCommand.php @@ -31,7 +31,7 @@ public function handle() $this->task( ' 1. Extracting all builds', function () { - $builds = ['githooks-7.1.tar', 'githooks-7.3.tar', 'githooks-8.1.tar']; + $builds = Build::ALL_BUILDS; foreach ($builds as $tarFile) { $this->extractBuild($tarFile); } diff --git a/src/Build/Build.php b/src/Build/Build.php index cb55258..dfe7478 100644 --- a/src/Build/Build.php +++ b/src/Build/Build.php @@ -8,6 +8,8 @@ class Build { + const ALL_BUILDS = ['githooks-7.1.tar', 'githooks-7.3.tar', 'githooks-8.1.tar']; + /** @var string */ private $phpVersion;