Skip to content

Commit a9d8286

Browse files
authored
ci(release-drafter): disable automatic triggers (#2181)
The action fails on every push and PR event because the repo has no releases, triggering a known pagination bug in release-drafter@v7 ("Data doesn't contain nodes field"). Since no releases are planned, replace all automatic triggers with workflow_dispatch so it can still be invoked manually if ever needed. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent 43f6b02 commit a9d8286

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
name: Release Drafter
22

33
on:
4-
push:
5-
# branches to consider in the event; optional, defaults to all
6-
branches:
7-
- main
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
12-
# pull_request_target event is required for autolabeler to support PRs from forks
13-
# pull_request_target:
14-
# types: [opened, reopened, synchronize]
4+
workflow_dispatch:
155

166
permissions:
177
contents: read
@@ -35,4 +25,4 @@ jobs:
3525
# config-name: my-config.yml
3626
# disable-autolabeler: true
3727
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)