Skip to content

dudisamarel/reset-head

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

28 Commits
 
 
 
 
 
 

Repository files navigation

Before you start

reset-head requires a GitHub token with write permission. You configure this token via the token configuration option.

You can use the built-in GITHUB_TOKEN secret, however, you have to grant write permission:

  1. navigate to the main page of the repository.
  2. Under your repository name, click Settings.
  3. In the left sidebar, click Actions, then click General.
  4. In Workflow permissions section check Read and write permissions and click Save.

Usage

- uses: dudisamarel/reset-head@v1
  with:
    branch-name: develop

Configuration

input description
branch-name required. The name of the branch to reset.
token optional. A GitHub secret token, the action defaults to using the the built-in GITHUB_TOKEN secret
head optional. The commit or tag to reset the branch to. Default $GITHUB_REF_NAME