Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jagadish-k/toggle-gh-protection

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggle Protection on Branch

This is a github action to enable or disable protection no specified branch osthat other actions can be carried out as part of CI action.

Usage

...
- uses: jagadish-k/toggle-gh-protection@master
  with:
    github-token: ${{ env.REPO_TOKEN }}
    repo: ${{ github.event.repository.name }}
    owner: ${{ github.repository_owner }}
    branch: main
    protection-on: off
...... Do Something

- uses: jagadish-k/toggle-gh-protection@master
  with:
    github-token: ${{ env.REPO_TOKEN }}
    repo: ${{ github.event.repository.name }}
    owner: ${{ github.repository_owner }}
    branch: main
    users: alphauser,betauser
    team: core
    protection-on: on
...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •