Skip to content

Resolve issues on workflows #1503

Resolve issues on workflows

Resolve issues on workflows #1503

---
# SPDX-FileCopyrightText: Time Lucas
#
# SPDX-License-Identifier: ISC
#
name: Release Drafter
on: # yamllint disable-line rule:truthy
push:
branches: [main, develop, release, improve_build-workflow]
# 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:
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
# s- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
# Drafts your next Release notes as Pull Requests are merged
# into "master"
- name: Release Drafter
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
# (Optional) specify config name to use, relative to .github/.
# Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}