tagΒΆ

  • Alias: tag
  • Task: Maestro\Extension\Vcs\Task\TagVersionTask
  • Handler: Maestro\Extension\Vcs\Task\TagVersionHandler
  • Arguments:
    • This task has no arguments

Tag a packages configured version only if the latest semantic version is different from the configured version.

Note

Use the Version report to check which packages will be tagged.

Example configuration using the tag task - the package will be tagged with 1.5.0 if the actual version is not 1.5.0 and if the tests node passes.

{
    "nodes": {
        "phpactor/container": {
            "type": "package",
            "args": {
                "version": "1.5.0"
            },
            "nodes": {
                "tests": {
                    "type":"script",
                    "args": {
                        "script": "true"
                    }
                },
                "tag": {
                    "type": "tag",
                    "depends": ["tests"]
                }
            }
        }
    }
}