Save the folder link in a variable
The tool allows you to automatically populate a variable with the SharePoint folder link; simply check the option:

Then select the variable's value from the drop-down menu.
Only variables without a version will appear here, since the Publish operation does not need to retrieve the document for publication.
After the task is completed, the variable will automatically be populated with a hyperlink to the SharePoint folder.