Code Monkey home page Code Monkey logo

cancel-workflow-run's Introduction

Cancel workflow run GitHub Apps

Go Report Card codecov deploy

Cancel workflow run BOT. Cancel workflow run If Pull request contains new workflow, and which trigger pull request.

The main purpose is to repel miners.

image

Install

Sorry, Not publish this GitHub Apps. Because I don't have the money to get the backend working.

GitHub Apps Setup flow (For Self hosted)

Prerequisites

  • GitHub Account.
  • Azure Subscription.
    • Needs Contributor role

1. Click Deploy to Azure button

Deploy to Azure

2. Fill below And click Create

  • Resource group ... Please specify the deployment destination of resources.
  • Region ... Please specify the deployment region of resources.
  • AppId ... NO NEED TO FILL. (fill after GitHub Apps created.)
  • Webhook_secret ... NO NEED TO FILL. (fill after GitHub Apps created.)
  • Secret ... NO NEED TO FILL. (fill after GitHub Apps created.)

setup-1 setup-2

3. After deployed. Open setup_url

setup-3

4. Create GitHub Apps.

After setup_url opened. GitHub App Creation Site will be displayed. Fill GitHub App name, And click Create GitHub App Button.

setup-4

5. Apply GitHub App Parameters.

After click Create GitHub App Button. Azure template deploy screen displan again. Select Resource Group which fill in 2. Fill below And click Create.

setup-5

6. Done.

You can now install it.

Using resources.

archtecture

  • Azure Functions
    • Linux consumption plan
    • (Backend language is go)
  • Azure Storage
    • Azure Functions Requirements
  • Azure App Insights
    • For Azure Functions monitoring
  • Event Grid
    • Kick workflow cancel job for GitHub App webhook hooked Asynchronously.

Details

Trigger workflow_run flow

process

Setup GitHub App flow

setup1 setup2

It is drawn in yskszk63/seqdia.

LICENSE

MIT

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.