Skip to content

Update github-actions #509

Update github-actions

Update github-actions #509

Workflow file for this run

name: Release drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
update_release_draft:
if: |
github.event.repository.fork == false
&& github.event_name != 'pull_request'
permissions:
# write permission is required to create a GitHub Release
contents: write
runs-on: ubuntu-slim
steps:
# Drafts your next release notes as pull requests are merged into "main"
- uses: release-drafter/release-drafter@v7
autolabeler:
if: |
github.event.repository.fork == false
&& github.event_name == 'pull_request'
permissions:
# write permission is required for autolabeler
pull-requests: write
runs-on: ubuntu-slim
steps:
- uses: release-drafter/release-drafter/autolabeler@v7