ShareShortcuts
Fork “UpdateHub”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so tdevx gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
71K
Saved
2
Actions
346
Category
Utilities
Version
1.1
Language
EN

UpdateHub was designed to keep all of your Shortcuts up to date without the requirement of running them individually.

Caution: This Shortcut is currently in beta, you may experience issues.

Graphics by MediaKit


Features

Bulk Search

Bulk Search is UpdateHub’s bread and butter, allowing you to check all of your Shortcuts for updates at once. This is achieved by parsing every Shortcut in your library and fetching the data stored in a ”Comment Action” at the top. This is the only thing you’ll need to add in order for UpdateHub to fetch the latest updates from RoutineHub.

Manual Search

Manual Search is an optional method to manually check RoutineHub for the latest update. This will only check the Shortcut you’re currently running and is lightning fast. This is achieved by a ”Text Action”with the name of your Shortcut and the ”Run Shortcut Action” linking to UpdateHub.

Version Rollback

Sometimes things break and us creators sometimes scramble trying to fix a broken update and publish a new version ASAP. To combat this issue, UpdateHub has support for rolling back an update. If there’s something wrong with a version currently accessible via RoutineHub and you delete it, anybody who has already downloaded it will be notified to downgrade the next time they check for an update.


Documentation

Overview

Below you will find detailed instructions on how to implement UpdateHub into your Shortcuts. This includes options for hosting your updates on RoutineHub or privately hosting them. You will also find an extra (optional) step to manually check for an update through your Shortcut. This step can also be used to automatically check for updates every 24 hours, you can see an example of this in the DEMO provided.

Note: If you experience any issues or require assistance, don’t hesitate to contact me via Reddit.

Version Numbers

Multi-decimal version numbers are supported all thanks to the brilliant mind behind one of the more popular Shortcuts for iOS, UpdateKit. Mike Beasley recently updated his Shortcut to version 4.0, where he developed a script that will quickly compare two versions. Not only is UpdateKit Engine 1.1 most efficient way to do this, but it also supports multi-decimal version numbers. To learn more about UpdateKit and UpdateKit Engine, you can follow the link provided below.

Learn More

Bulk Search

Adding UpdateHub’s Bulk Search to your Shortcuts is quite possibly the easiest thing you’ll ever do. All UpdateHub requires from you to implement Bulk Search is a ”Comment Action” at the top of your Shortcut.

Due to the way UpdateHub fetches data from this comment, you may add some information about your Shortcut above the required text. Please keep this comment to a maximum of 12 lines in total to ensure UpdateHub can still find the data.

RoutineHub

To check for the latest updates using RoutineHub, you can reference the image below.

Private Hosting

To check for the latest updates using a privately hosted JSON file, you can reference the image below.

Manual Search

To add a manual search to your Shortcut, use a Text Action containing the name of your Shortcut then add the Run Shortcut Action linking to UpdateHub.

Response Codes

When you check updates manually through your Shortcut, you’ll finish with 3 types of response codes.

When no updates are found, you’ll be returned with “NO-UPDATE”. In addition to this, UpdateHub will also send a notification to the user to inform them that they’re up to date.

If an update has been found and the user has chosen to install it, you’ll be returned with “UPDATE”. I highly recommend adding an Exit Shortcut Action if you are returned this code.

If an update has been found and the user has chosen to skip it, you’ll be returned with “SKIP-UPDATE”.

If there was a problem parsing data from the required Comment Action, you’ll be returned with “ERROR”.

Note: If you’d like to see this in action, you can download a demo that will check for an update automatically every 24 hours HERE

Branding

If you feel UpdateHub is the right fit for you and your Shortcuts, you may use the following on your RoutineHub page.

[![UpdateHub](https://i.imgur.com/8tugTDE.png)](https://routinehub.co/shortcut/2066)

What's New

Version 1.1

- UpdateHub is no longer in Beta! - Fixed an issue that would prevent your Shortcuts running if you're not connected to the internet. - RoutineHub is no longer required in order to use UpdateHub, you now have the option to link your Shortcuts to a privately hosted update file (check the documentation to learn more).

Version History
1.1 Mar 11, 2019

- UpdateHub is no longer in Beta! - Fixed an issue that would prevent your Shortcuts running if you're not connected to the internet. - RoutineHub is no longer required in order to use UpdateHub, you now have the option to link your Shortcuts to a privately hosted update file (check the documentation to learn more).

1.0 Feb 26, 2019

First release

What it does

346 actions
  1. Comment
    Made by tdevx https://routinehub.co/user/tdevx /u/tdevx @tdevx#6779 RoutineHubUpdate Current Version: "1.0" RoutineHub ID: "2066" RoutineHubUpdate
  2. Comment
    Release Notes: - UpdateHub is no longer in Beta! - Fixed an issue that would prevent your Shortcuts running if you're not connected to the internet. - RoutineHub is no longer required in order to use UpdateHub, you now have the option to link your S…
  3. Dictionary
  4. Set Variable
    shortcut_details
  5. Comment
    --- Start
  6. Create Folder
  7. Get File
  8. Count
  9. If
  10. Dictionary
  11. Set Variable
    shortcut_config
  12. Save File
  13. If
  14. Get File
  15. Set Variable
    shortcut_config
  16. Comment
    --- Header
  17. Get Variable
  18. Format Date
  19. Text
  20. Set Variable
    shortcut_header
  21. Comment
    --- Connection
  22. Get IP Address
  23. Count
  24. If
  25. Text
  26. Base64 Encode
  27. Show Notification
    To check for the latest updates, please connect to the internet.
  28. Stop This Shortcut
  29. Comment
    --- Database
  30. Get Variable
  31. Count
  32. If
  33. Get Variable
  34. Get Time Between Dates
  35. If
  36. Comment
    --- No Database Refresh
  37. Get File
  38. Extract Archive
  39. Repeat with Each
  40. Add to Variable
  41. If
  42. Comment
    --- Database Refresh
  43. Get My Shortcuts
  44. Repeat with Each
  45. Set Variable
    shortcut_icon
  46. Set Name
  47. If
  48. Get Variable
  49. Get Images from Input
  50. Resize Image
  51. Base64 Encode
  52. Set Variable
    shortcut_icon
  53. Get Variable
  54. Split Text
  55. Get Item from List
  56. Combine Text
  57. Set Variable
    shortcut_data
  58. Match Text
  59. Set Variable
    match
  60. Count
  61. If
  62. Nothing
  63. If
  64. Get Variable
  65. Get Group from Matched Text
  66. Set Variable
    current_version
  67. Get Variable
  68. Get Group from Matched Text
  69. Set Variable
    routinehub_id
  70. Dictionary
  71. Set Name
  72. Add to Variable
  73. If
  74. If
  75. Get Variable
  76. Get Images from Input
  77. Resize Image
  78. Base64 Encode
  79. Set Variable
    shortcut_icon
  80. Get Variable
  81. Split Text
  82. Get Item from List
  83. Combine Text
  84. Set Variable
    shortcut_data
  85. Match Text
  86. Set Variable
    match
  87. Count
  88. If
  89. Nothing
  90. If
  91. Get Variable
  92. Get Group from Matched Text
  93. Set Variable
    current_version
  94. Get Variable
  95. Get Group from Matched Text
  96. Set Variable
    update_url
  97. Dictionary
  98. Set Name
  99. Add to Variable
  100. If
  101. Nothing
  102. Get Variable
  103. Make Archive
  104. Save File
  105. Get Variable
  106. Count
  107. Get File
  108. Set Dictionary Value
  109. Save File
  110. Date
  111. Adjust Date
  112. Get File
  113. Set Dictionary Value
  114. Save File
  115. If
  116. Comment
    --- Manual
  117. Get My Shortcuts
  118. Filter Files
  119. Set Variable
    shortcut_icon
  120. Set Name
  121. If
  122. Get Variable
  123. Get Images from Input
  124. Resize Image
  125. Base64 Encode
  126. Set Variable
    shortcut_icon
  127. Get Variable
  128. Split Text
  129. Get Item from List
  130. Combine Text
  131. Set Variable
    shortcut_data
  132. Match Text
  133. Set Variable
    match
  134. Count
  135. If
  136. Show Alert
    Error Occurred
  137. Text
  138. Stop This Shortcut
  139. If
  140. Get Variable
  141. Get Group from Matched Text
  142. Set Variable
    current_version
  143. Get Variable
  144. Get Group from Matched Text
  145. Set Variable
    routinehub_id
  146. Dictionary
  147. Set Name
  148. Add to Variable
  149. If
  150. If
  151. Get Variable
  152. Get Images from Input
  153. Resize Image
  154. Base64 Encode
  155. Set Variable
    shortcut_icon
  156. Get Variable
  157. Split Text
  158. Get Item from List
  159. Combine Text
  160. Set Variable
    shortcut_data
  161. Match Text
  162. Set Variable
    match
  163. Count
  164. If
  165. Show Alert
    Error Occurred
  166. Text
  167. Stop This Shortcut
  168. If
  169. Get Variable
  170. Get Group from Matched Text
  171. Set Variable
    current_version
  172. Get Variable
  173. Get Group from Matched Text
  174. Set Variable
    update_url
  175. Dictionary
  176. Set Name
  177. Add to Variable
  178. If
  179. Nothing
  180. Get Variable
  181. Repeat with Each
  182. If
  183. Comment
    --- RoutineHub
  184. Set Variable
    current_check
  185. URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  186. Get Contents of URL
  187. Set Variable
    current_routinehub
  188. Get Dictionary Value
  189. Set Variable
    New Version
  190. Text
  191. Base64 Encode
  192. URL
    data:text/html;base64,…
  193. Get Contents of Web Page
  194. Split Text
  195. If
  196. Nothing
  197. If
  198. If
  199. Dictionary
  200. Set Name

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by tdevx

See All

You Might Also Like

See All
Advertisement