Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Auto Cancellation allows you to only run builds for the latest commits in the queue. Reduce number of minutes usage of github action by killing all old actions running on the same branch and not finished.

License

Notifications You must be signed in to change notification settings

fauguste/auto-cancellation-running-action

Repository files navigation

auto-cancellation-running-action

DEPRECATED : Use native github action functionnalty

Auto Cancellation allows you to only run builds for the latest commits on a same branch. Reduce number of minutes usage of github action by killing all old actions running on the same branch and not finished.

Usage

You can create a .github/workflows/auto-cancellation.yml file:

name: auto cancellation running job
on: pull_request

jobs:
  cancel:
    name: auto-cancellation-running-action
    runs-on: ubuntu-latest
    steps:
      - uses: fauguste/auto-cancellation-running-action@0.1.4

This will trigger the action when a pull request is opened or updated.

Package

npm run package

License

Licensed under the MIT license.

About

Auto Cancellation allows you to only run builds for the latest commits in the queue. Reduce number of minutes usage of github action by killing all old actions running on the same branch and not finished.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published