Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unnecessary workflows to save resources 🌳 #66

Open
GollyTicker opened this issue Jun 21, 2022 · 0 comments
Open

Skip unnecessary workflows to save resources 🌳 #66

GollyTicker opened this issue Jun 21, 2022 · 0 comments
Labels
github_actions Pull requests that update GitHub Actions code quality Improve quality and reliability of software via refactoring, complexity-minimisation, etc.

Comments

@GollyTicker
Copy link
Collaborator

GollyTicker commented Jun 21, 2022

Almost always the test workflow is run twice on the same code - once during the PR review - and a second time after the merge into master.

This is unnecessary and puts extra costs to GitHub and other computing resources.

I would like to add and use Skip Duplicate Actions in places, where the same code is tested multiple times.

We are interested in the following non-exhaustive changes:

  • canceling the test workflow for all non-recent runs
  • skip tests for the same run after merge into main
    • Fortunately, the skip only happens for the same code state - and it is still run for manual invocations. This seems appropriate here.
@GollyTicker GollyTicker added quality Improve quality and reliability of software via refactoring, complexity-minimisation, etc. github_actions Pull requests that update GitHub Actions code labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code quality Improve quality and reliability of software via refactoring, complexity-minimisation, etc.
Development

No branches or pull requests

2 participants