---
    name: "st2_upgrade_master_staging"
    description: "Upgrade StackStorm on staging hosts for each build"
    enabled: true
    trigger:
        type: "core.st2.generic.actiontrigger"
    criteria:
        trigger.action_name:
            pattern: "st2cd.packaging"
            type: "equals"
        trigger.status:
            pattern: "succeeded"
            type: "equals"
        trigger.parameters.environment:
            pattern: "staging"
            type: "equals"
    action:
        ref: "st2cd.st2_upgrade"
        parameters:
            action: "core.local"
            action_params: "hostname"
            hostname: "{{system.st2_ci_host}}"
            repo: "{{trigger.parameters.repo}}"
            branch: "{{trigger.parameters.branch}}"
            environment: "{{trigger.parameters.environment}}"

---
    name: "st2_upgrade_master_staging"
    description: "Upgrade StackStorm on staging hosts for each build"
    enabled: true
    trigger:
        type: "core.st2.generic.actiontrigger"
    criteria:
        trigger.action_name:
            pattern: "st2cd.st2\\_packaging"
            type: "equals"
        trigger.status:
            pattern: "succeeded"
            type: "equals"
        trigger.parameters.environment:
            pattern: "staging"
            type: "equals"
    action:
        ref: "st2cd.st2_upgrade"
        parameters:
            action: "core.local"
            action_params: "hostname"
            hostname: "{{system.st2_ci_host}}"
            repo: "{{trigger.parameters.repo}}"
            branch: "{{trigger.parameters.branch}}"
            environment: "{{trigger.parameters.environment}}"

Update upgrade rule to use thw correct new action name.
Update upgrade rule to use thw correct new action name.
