Webhook after auto update

Is it possible to run a webhook after a successful autoupdate? True to push the new code into a repository.

  • Adam Czajczyk

    Hello fabio duo

    I hope you're well today and thank you for your question!

    The Automate performs updates by contacting your site via WPMU DEV Dashboard (which is responsible for providing connectivity with our API), which in turn triggers updates locally.

    There's no action/filter that could give you a "signal" that entire process has been finished, unfortunately. It goes "one by one". However, if you got Automate set to update "everything" you could possibly hook to WP native "upgrader_process_complete" - that would call your function actually on each single update (so e.g. 3 times if there are 3 plugins updated) but you could also use

    get_core_updates(), get_theme_updates(), get_plugin_updates()

    to get a complete list of updates so your callback for "upgrader_process_complete" could be checking whether there are any more updates left to be performed and if there's none, it could then trigger your own procedures to push the new code to a repository.

    Best regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.