Back to articles
Introducing 'Publish to Dev.to Organization' Action: How to Safely Test Your Workflow
How-ToTools

Introducing 'Publish to Dev.to Organization' Action: How to Safely Test Your Workflow

via Dev.to Tutoriallwgena

I recently joined Dev.to and wanted to automate my article publishing directly from GitHub. However, I quickly hit a roadblock: I wanted to publish posts under an Organization , but I realized I had to write a custom script using the Forem API to make that happen, as existing tools didn't fully support it. I started writing a custom GitHub Action just for my own workflow. But halfway through, I thought, "Why not just make this available for everyone on the GitHub Marketplace?" And so, Publish to Dev.to Organization Action was born! But of course, before publishing a tool that interacts with a live API, I needed a way to test it thoroughly. If you test a publishing workflow live, you risk spamming your followers or hitting rate limits. To solve this, I implemented a dry_run feature in this action. In this post, I'll show you how to use this feature to test all 8 possible publishing patterns without making any actual publishing API calls ( POST or PUT ) to Dev.to. (Note: The action only

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
3 views

Related Articles