Skip to content

Release Drafter

Release Drafter #33

name: Release Drafter
# Runs autolabeler on every PR
# Creates/updates draft release on every push to master
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
update-release-draft:
name: Update Release Draft
runs-on: ubuntu-latest
steps:
- name: Update release draft
uses: release-drafter/[email protected]
with:
# allows autolabeler to run without unmerged PRs from being added to draft
disable-releaser: ${{ github.ref_name != github.event.repository.default_branch }} # Should be the branch that gets releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}