GitXplorerGitXplorer
o

main-branch-check-action

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
e63babfaa62a5eb5ca9fd14ae54b155a4ed23490

Version bump (#10)

jjaymzh committed 5 months ago
Verified
401afd0ff9dc0f736a607b2c4af0036c8a164a5a

Handle new workflows (#9)

jjaymzh committed 5 months ago
Verified
24db3462f493adad455ca55c1c2c0a4345656b2c

version 1.0.1 (#8)

jjaymzh committed 5 months ago
Verified
6df835ff98e6eb3620b0494b6263d4cf7b08adcd

Handle null PR bodies (#7)

jjaymzh committed 5 months ago
Verified
f6531e62839643217a89d12250194b8fd2326fc0

Adding LICENSE file for opensourcing (#6)

jjaymzh committed 5 months ago
Verified
535d4f42c0ba2ea546aa5d68cad1b3a02f5335de

Add build status badge (#5)

jjaymzh committed 5 months ago

README

The README file for this repository.

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