Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

yskszk63/cancel-workflow-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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