Skip to content

Whether a new github release of the repository can be created.

License

Notifications You must be signed in to change notification settings

tshion/can-create-release

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

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

can-create-release (for GitHub Actions)

Whether a new github release of the repository can be created.

Usage

If the tag name is already is use, an error will occur.

- uses: tshion/can-create-release@(version)
  with:
    # Repository name with owner. For example, tshion/can-create-release
    #
    # Default: ${{ github.repository }}
    repository: ''

    # Tag name you want to release
    tag: ''

    # Personal access token (PAT) used to fetch the repository. The PAT is configured
    # with the local git config, which enables your scripts to run authenticated git
    # commands. The post-job step removes the PAT.
    #
    #
    # We recommend using a service account with the least permissions necessary.
    # Also when generating a new PAT, select the least scopes necessary.
    #
    #
    # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
    #
    # Default: ${{ github.token }}
    token: ''

Scenarios

Please refer to the release page for the latest version.

Check in the same repository

- uses: tshion/can-create-release@(version)
  with:
    tag: (Tag name you want to release)

Check another repository

- uses: tshion/can-create-release@(version)
  with:
    repository: (Repository name with owner)
    tag: (Tag name you want to release)

Check another repository (private)

You need to provide PAT that can read another repository.

- uses: tshion/can-create-release@(version)
  with:
    repository: (Repository name with owner)
    tag: (Tag name you want to release)
    token: (Personal access token (PAT) used to fetch the repository)

About

Whether a new github release of the repository can be created.

Topics

Resources

License

Stars

Watchers

Forks

Languages