Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cancel-circle-workflows

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cancel-circle-workflows

A proof-of-concept library to cancel redundant CircleCI workflows

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cancel-circle-workflows

This is a proof-of-concept library for how simple it would be to implement functionality to cancel redundant workflows on CircleCI. Equivalent functionality existed within CircleCI 1.0 for redundant builds but that same functionality is now missing on CircleCI 2.0 with workflows.

Setup

Install the package:

npm install --save-dev cancel-circle-workflows
yarn add -D cancel-circle-workflows

Usage

This package has a default exported (promise-returning) function that expects to be invoked with a valid cookie string. This project assumes that it's being run on CircleCI directly. If you want to test this locally, just make sure to set the CIRCLE_BRANCH, CIRCLE_PROJECT_USERNAME, and CIRCLE_PROJECT_REPONAME environment variables beforehand.

Import this package:

import cancelCircleWorkflows from 'cancel-circle-workflows';

Call it while passing in your cookie:

await cancelCircleWorkflows(someValidCookie);

Keywords

FAQs

Package last updated on 09 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc