Giter Club home page Giter Club logo

Comments (4)

styfle avatar styfle commented on August 14, 2024

Wouldn't the merged commit have a different hash than the PR head?

Maybe you could try the Advanced Usage: https://github.com/styfle/cancel-workflow-action#advanced

from cancel-workflow-action.

ironhalik avatar ironhalik commented on August 14, 2024

Hmm, it actually has the same commit hash. The workflow is being triggered against the PR, not the target branch - so the commit hash in GHA payload is the last one in the PR.

I looked at the advanced usage. Do I understand correctly, that if I specify workflow_id, then this action will cancel all running workflows with this ID? For all branches, commits, etc?

from cancel-workflow-action.

styfle avatar styfle commented on August 14, 2024

if I specify workflow_id, then this action will cancel all running workflows with this ID? For all branches, commits, etc?

It will cancel all except the SHA of the current run.

workflow => workflow.head_sha !== headSha && workflow.status !== 'completed'

We can't safely cancel the current run or else CI would never be green.

from cancel-workflow-action.

styfle avatar styfle commented on August 14, 2024

Can you try updating to styfle/[email protected] and see if this solves your issue?

Its possible that the branch names were similar and running into the issue described in #24 which was fixed in 0.4.1.

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.