Giter Club home page Giter Club logo

Comments (5)

mcramer-billgo avatar mcramer-billgo commented on August 14, 2024 1

Trying to implement the concurrency at the job level in a multi-job workflow and getting a properties error.

.github/workflows/deploy-gluon-api.yml failed test
[
  {
    instancePath: '/jobs/deploy-dev-canary',
    schemaPath: '#/properties/jobs/patternProperties/%5E%5B_a-zA-Z%5D%5Ba-zA-Z0-9_-%5D*%24/additionalProperties',
    keyword: 'additionalProperties',
    params: { additionalProperty: 'concurrency' },
    message: 'must NOT have additional properties'
  }
]

implementation in workflow for context:

jobs:
  job1:
  ...

  deploy-dev-canary:
    concurrency:
      group: ${{ github.ref }}
      cancel-in-progress: true
    environment:
      name: "appname-dev-canary"
    needs: setup
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      ...

What is wrong with my implementation at the job level?

from cancel-workflow-action.

mikehardy avatar mikehardy commented on August 14, 2024

That looks really cool - appears to be nice for cases where you want to cancel previous of same workflow - plus obviously for things where you are interested in making sure multiple jobs don't run in parallel

But it does not handle other-workflow cancel or the new (super useful) all_but_latest feature here

from cancel-workflow-action.

styfle avatar styfle commented on August 14, 2024

Very cool! Looks like its still in beta and subject to change though.

https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency

from cancel-workflow-action.

ocean90 avatar ocean90 commented on August 14, 2024

Yep, it also seems to not work as expected right now:

from cancel-workflow-action.

styfle avatar styfle commented on August 14, 2024

Also mentioned here #133 (comment)

from cancel-workflow-action.

Related Issues (20)

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.