Menu

1 / 3

Keeping quick checks automatic while approving expensive GitHub Actions jobs

DEV Community: github·Ranjan R. Lamichhane·4 days ago
#rAzf3roB
#devtogithub#technology#devto#dev#greenlight
Reading 0:00
15s threshold

I'm a backend/DevOps engineer. And I've run into this a lot of times: I want a more refined setting for CI than just running everything on every push.

I've worked with jobs that were expensive enough that doing that added up quickly. But I've had the same annoyance in personal projects too. Sometimes I'm pushing intermediate changes, and I don't need another full build or integration test run yet.

So I built Greenlight Actions . It lets you give your CI runs a greenlight when you want, directly from the PR.

What I wanted to keep automatic

I still want quick feedback. Linting and quick tests can keep running on every push. It's the longer builds, integration tests, or jobs that call paid services that I want to hold off on.

With Greenlight, you choose which work waits for approval. Click Run CI on the PR check or comment /greenlight when you're ready. Each new commit needs fresh approval. Waiting doesn't use runner minutes.

An example with environment mode

First, install the GitHub App .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.