diff --git a/src/BinaryInstallerPlugin.php b/src/BinaryInstallerPlugin.php index 889b6441..27094734 100644 --- a/src/BinaryInstallerPlugin.php +++ b/src/BinaryInstallerPlugin.php @@ -35,6 +35,20 @@ class BinaryInstallerPlugin extends BinaryInstaller 'hashalgo' => 'sha256', 'version' => '3.28.0', ], + 'action-validator' => [ + 'releases' => [ + 'linux' => [ + 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_amd64', 'sha' => 'fa61521913ee4cf5de7e4d5b803741b2c60ebde447ee38e2b71abbd213d3354a'], + 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_arm64', 'sha' => '38a582690ab7e64ba33b4c29eaf16979ed116d4daf40fde39ec18992c475c0b1'], + ], + 'darwin' => [ + 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_amd64', 'sha' => '10f453ad4ed011eb3866bd35c25311bd2fe1fbf353cbe64793115de2348f8ddb'], + 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_arm64', 'sha' => '68e09e0793cf958daf0aebe69fb2bf858232fb9c4f74f913dab02db67d32224d'], + ], + ], + 'hashalgo' => 'sha256', + 'version' => '0.6.0', + ], ]; /** diff --git a/tasks/github.yml b/tasks/github.yml index 9e55e1d0..98fe59a8 100644 --- a/tasks/github.yml +++ b/tasks/github.yml @@ -13,7 +13,13 @@ tasks: - | directories=".github/workflows .github/actions" if [ "{{ .directories }}" != "" ]; then directories="{{ .directories }}"; fi - find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -n1 npx @action-validator/cli + + if [ -f ./vendor/bin/action-validator ]; then + find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -n1 ./vendor/bin/action-validator + # Fallback for architectures that don't have a release e.g. Windows + else + find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -n1 npx @action-validator/cli + fi composer-lock-diff: desc: Runs composer-lock-diff on a pull request description and produces a new description