question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CORE] CI Skipping

See original GitHub issue

Associated Template/Command/Core Feature request is associated with the core of COOKIETEMPLE, both it and its templates could benefit from it.

Is your feature request related to a problem? Please describe. Lack of an option to skip CI workflows on commit messages could lead to rapid consumption of all minutes offered by GitHub for a free account/repository. The option to skip on commit CI would help resolve the issue, as well as speed up the dev process (since you do not need to wait for the result).

Describe the solution you’d like The solution I propose is one I used in my C++ template, as described in this feature request. To summarize, I suggest the usage of a specific “flag”, such as [skip ci]/[ci skip] in the commit message, which would prompt GH Actions not to run for that commit.

An example of generating a CI skippable commit:

git commit -m "my normal commit message [skip ci]"

Describe alternatives you’ve considered Alternatives to the proposed feature are:

  • A blacklist containing files that, if changed, would not trigger the workflows,
  • A whitelist containing files that, if changed, would trigger the workflows,
  • Changing the trigger from on push to manual

Additional context An example of how to implement it is by adding in the job the following conditional:

jobs:
  build:  # assuming it is the job you want to skip

    runs-on: ubuntu-latest  # desired OS
    if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Zethsoncommented, Jun 4, 2020

Oh don’t worry.

@Imipenem will discuss this today and write down the requirements.

It’s absolutely fine if someone implements this on the next 2 weeks or so, so please don’t stress yourself.

We’ll get back to you tonight/tomorrow.

1reaction
Zethsoncommented, Jun 6, 2020

I think this is something we should think about. A deployed/final product should not build if [the license] is changed. A project that is * in development*, should probably be able to “remake” itself in this case.

Yes, I agree.

@Imipenem @filipdutescu Let’s roll with this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gitlab CI : Skipping cache archiving due to empty cache key
NET core and angular project in gitlab ci script. I have this message Skipping cache archiving due to empty cache key. here is...
Read more >
Inconsistent behavior when using needs with skipped jobs
The project property Skip outdated deployment jobs is not checked. The pipeline is divided over several files which are included from the ....
Read more >
Skipping CI in GitHub Actions Workflows - Tim Heuer
In Pipelines you have the built-in functionality to put some comments in the commit message that trigger (or don't trigger rather) the CI...
Read more >
Skipping a CI Build for non-code changes - Reflectoring
A guide on how to skip a CI build when only certain documentation files have changed.
Read more >
Get more control over Netlify continuous deployment with ...
You can skip the automated deployment of multiple commits by adding [skip ci] in the commit message of the last commit of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found