# Simple trick to save environment and money when using GitHub Actions

DevFeed: [Simple trick to save environment and money when using GitHub Actions](<https://devfeed.tech/articles/simple-trick-to-save-environment-and-money-when-using-github-actions-6034.md>)

Original publisher: [Read original article](<https://turso.tech/blog/simple-trick-to-save-environment-and-money-when-using-github-actions>)

Author: Piotr Jastrzebski

Published: 2024-07-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [ci](<https://devfeed.tech/topics/ci.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [cost](<https://devfeed.tech/tags/cost.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [libsql](<https://devfeed.tech/tags/libsql.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [turso](<https://devfeed.tech/tags/turso.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

The article explains how to configure GitHub Actions workflows to cancel stale pull-request runs when newer commits arrive. This reduces unnecessary CI/CD runner usage, cost, and electricity consumption.

## Source excerpt

Make your GitHub Actions more environment friendly and money savvy