This is possibly a duplicate of a Shortcut developed elsewhere, however a quick Google didn’t turn anything up.
This Shortcut will post to your micro.blog the current album you’re listening to on Apple Music, together with a link to the album on iTunes (which should open Apple Music if tapped on an iPhone/iPad).
When you import the Shortcut you’ll be asked for an App Token (which you can generate on the Account page). Since I’m interested in blogging albums, rather than individual songs, the Shortcut looks up the album by name in iTunes. Since this is a text search the Shortcut then prompts the user to confirm which is the actual album they’re listening to. You can then optionally type a comment about the music.
I haven’t done a huge amount of testing with this, but I’m hoping it’ll work for me to keep a better record of stand out discovered albums.