-
-
Notifications
You must be signed in to change notification settings - Fork 111
41 lines (35 loc) · 975 Bytes
/
release-drafter.yml
File metadata and controls
41 lines (35 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Release Drafter
permissions:
contents: write
pull-requests: write
on:
push:
branches:
- stable*
pull_request_target:
branches:
- stable*
types: [closed]
jobs:
update_release_draft:
if: >
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/stable')) ||
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.base.ref, 'stable')
)
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true
- name: Draft release for this branch
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}