Skip to content

topheman/create-release-if-not-exist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

topheman/create-release-if-not-exist

This GitHub Action creates a release if it doesn't exist.

You can pass any arguments you would pass to gh release create command that will run if the release doesn't exist.

Usage

jobs:
  release-draft:
    permissions:
      contents: write
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Create release draft if not exist
        uses: topheman/create-release-if-not-exist@v1
        with:
          args: "${{ github.ref_name }} --draft --generate-notes"

Note: Do not forget the actions/checkout@v4 step, it is needed to have a git repository (use git commands in the action).

Related Actions

Used By

About

GitHub Action that creates a release if it doesn't exist

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages