豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

openai/main-branch-check-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This repo is no longer maintained, instead you may want to try https://github.com/jaymzh/main-branch-check-action

main-branch-check action

Build

This check will determine the workflow it was called from, then see if tha workflow has run on master, and if it has, ensure it is passing.

To bypass this (e.g. if your PR is the fix), you can add:

[ci override_main_branch_checks $WORKFLOW]'

Or you to set all checks to non-fatal, you can do:

[ci override_main_branch_checks]

to your PR description.

Using

To use this, add a step into your workflow like:

- name: Main Branch Check
  # Do the check even if the PR failed elsewhere,
  # but don't do it if we're on <your main branch>
  if: always() && github.ref != 'refs/heads/main'
  uses: ./.github/actions/main-branch-check
  permissions:

  with:
    gh_token: ${{ secrets.SOME_TOKEN }}
    main_branch: "master"
    workflow_ref: ${{ github.workflow_ref }}

You will need a token that has the 'workflow' scope, and read/write access to pull-requests.

Updating

If you update the code, run:

make

to build the self-contained bundle.

If you update dependencies you'll need to run npm install first

About

A GitHub Action for checking the status of a workflow on the main branch as a status on the PR

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors