Giter Site home page Giter Site logo

Comments (10)

roopakv avatar roopakv commented on July 18, 2024 1

@jahn-mtg let me take a look at this later today, might not be as hard. I will post back here when i have an update on how hard this is and the expected time

from orbs.

devgupta2607 avatar devgupta2607 commented on July 18, 2024

How can I make a contribution?

from orbs.

roopakv avatar roopakv commented on July 18, 2024

Feel free tob send a PR my way. I am yet to write a contributing guide but it is pretty light weight right now

from orbs.

jin-ahn avatar jin-ahn commented on July 18, 2024

Any updates on this? Need this feature as well.

from orbs.

roopakv avatar roopakv commented on July 18, 2024

@jahn-mtg this support is now there on v0.47.0 let me know if you have any questions, or find that it isnt working as you'd expect :)

from orbs.

jin-ahn avatar jin-ahn commented on July 18, 2024

@roopakv wow thank you so much for getting back to me on this! really appreciate it. I was hoping for the regex feature to be implemented, for perhaps something like "all branches except master"

from orbs.

roopakv avatar roopakv commented on July 18, 2024

@jahn-mtg would love to understand the use case?

did you want to wait on all branches, but only block against workflows on non master branches? that seems like an edge case, and I'm not sure if i understand you correctly.

Could you explain your use case in detail in a new issue please? :)

from orbs.

jin-ahn avatar jin-ahn commented on July 18, 2024

@roopakv what we were looking for is the ability to block workflows if another branch has a workflow running EXCEPT when the workflow is occuring on master branch.

The use the case for this is that we have feature/branches all deploying to the same dev ENV and therefore don't want our automated tests to overlap, however master branch is pointed to an entirely different ENV (staging) so it should not block feature/branches from running

I guess to help clarify, something like "branch-to-ignore" instead of "branch-to-consider". I know that adding a new param probably is not the right approach, but just to explain the concept

from orbs.

roopakv avatar roopakv commented on July 18, 2024

@jahn-mtg you can achieve this by naming your workflows differently:

  • feature branches:
    workflow-name: "deploy-to-dev-env"
    branch-to-consider: all

  • master branch
    workflow-name: "deploy-to-staging"
    branch-to-consider: master

this way all feature branches will be queued one behind the other, master will be queued on itself alone.

Let me know if you think this wont solve your usecase

from orbs.

jin-ahn avatar jin-ahn commented on July 18, 2024

yea we can set it up that way. Thank you so much for the help and making the update! it was definitely helpful @roopakv

from orbs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.