Add support for custom source check-update callbacks in artifacts

This commit is contained in:
crazywhalecc
2026-02-28 14:35:48 +08:00
parent 0a07f6b27c
commit 28f4a5c523
4 changed files with 107 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
namespace StaticPHP\Attribute\Artifact;
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class CustomSourceCheckUpdate
{
public function __construct(public string $artifact_name) {}
}