Do not disturb action enable and disable, not toggle

I'm most likely missing something obvious / simple, but how do I add an action that only toggles DND if it is on (or off)? I have a shortcut that mutes then locks, and I'd like it to enable DND too so my default method of locking enables DND and prevents calls, etc.