Skip to content

Commit

Permalink
fix release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Nov 10, 2024
1 parent 6a50653 commit 9a837af
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
name: Release Drafter

name: Release Drafter and Labels
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

types: [edited, opened, reopened, synchronize, unlabeled, labeled]
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
#- 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"
- uses: release-drafter/release-drafter@v6
# (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 }}
require_label:
if: github.event.pull_request
needs: update_release_draft
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: "breaking, bug, github_actions, documentation, dependencies, enhancement, feature, maintenance, security"
add_comment: true

0 comments on commit 9a837af

Please sign in to comment.