Thank you for the compliment, but my day job is IT based and more than brilliance, I think that for me it is just a bit of experience, a bit of aptitude, and a willingness to pitch in and try and help people out.
On to the question at hand. Below is one way to get a listing on a per group basis. Please note that it is going to involve working with Apple’s Shortcuts app (install and subsequently run a shortcut), and it isn’t triggered from an action, but via the share sheet.
- Install this Shortcuts shortcut that I just created - Drafts - Actions in Group.
- In Drafts open the right hand draw to list the actions in your currently loaded Action Group.
- Tap on the title of your Action Group to reveal the Groups selection list.
- Tap on Manage at the bottom of that slide over to show the Manage Action Groups pop-up.
- Tap on the Action Group you want the actions for. It does not have to be the currently loaded action group. It can be any group you have.
- With the Action Group settings displayed in the bar at the bottom is a share icon. Tap it.
- Select to share as URL.
- Select Shortcuts as the destination on the share sheet.
- Select the Drafts - Actions in Group as the shortcut to run.
- After Shortcuts has done its thing, tap out of all the slide overs and the new draft containing the list of actions should be loaded.
For info, the shortcut…
- Takes the URL and strips out the Drafts “stuff” before the data.
- It URL decodes the data and the resulting JSON can be used for dictionary access.
- It grabs the name of the group and the name of each action in the dictionary and puts it into a list with the group name as a title prefixed by a hash. It also identifies any separator entries and prefixes them with two hashes. While it is not true Markdown as there’s (purposefully) no bullets or doube spaces at the end of the action names, the intention is that there is enough syntax in place to display the data a little more nicely than as just indistiguishable lines of text in Drafts for Action Goup name, separators and Actions.
- The resulting text is pushed into Drafts as a new draft.
Hopefully that gets you what you need.