https://github.com/bfren/create-release
Creates a release automatically from a merged PR.
https://github.com/bfren/create-release
action
Last synced: about 1 month ago
JSON representation
Creates a release automatically from a merged PR.
- Host: GitHub
- URL: https://github.com/bfren/create-release
- Owner: bfren
- License: mit
- Created: 2022-05-04T17:30:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T09:29:05.000Z (over 3 years ago)
- Last Synced: 2025-02-20T03:02:44.556Z (over 1 year ago)
- Topics: action
- Language: Shell
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Create Release
Create a GitHub release from a merged PR.
## Inputs
- `token`: GitHub personal access token
- `repo`: repository name, e.g. 'bfren/create-release' (defaults to `github.repository`)
- `branch`: source branch, e.g. 'dev' (defaults to `main`)
- `title`: release title (defaults to `github.event.pull_request.title`)
- `prerelease`: whether or not this is a prerelease (defaults to `false`)
- `latest`: whether or not this release is the 'latest' (defaults to `true`, other values `false` and `legacy`)
## Usage
Create a release when a PR is merged:
```yml
name: auto-release
on:
pull_request:
types: [closed]
workflow_dispatch:
jobs:
create-release:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
-
name: Create Release ${{ github.event.pull_request.title }}
uses: bfren/create-release@v1
with:
token: ${{ secrets.PAT }}
```
## Licence
> [MIT](https://mit.bfren.dev/2022)
## Copyright
> Copyright (c) 2022 bfren
> Unless otherwise stated