Skip to content

Commit

Permalink
Update release drafter work flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkhanh-axonivy committed Aug 11, 2024
1 parent 53629d7 commit c9f0864
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
11 changes: 3 additions & 8 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,9 @@ template: |
## Changes
$CHANGES
autolabeler:
- label: 'chore'
branch:
- '/chore\/.+/'
- label: 'bug'
branch:
- '/bug\/.+/'
- '/bugfix\/.+/'
- '/hotfix\/.+/'
- label: 'feature'
- '/(bugfix|fix)\/.+/'
- label: 'enhancement'
branch:
- '/feature\/.+/'
- '/(feature)\/.+/'
19 changes: 12 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
# 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:
inputs:
version:
description: 'Release version'
required: true
prerelease:
description: 'Is this a prerelease?'
required: false
default: 'false'
type: boolean

permissions:
contents: read
Expand All @@ -36,6 +40,7 @@ jobs:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
with:
config-name: release-drafter.yml
disable-autolabeler: true
version: ${{ github.event.inputs.version }}
prerelease: ${{ github.event.inputs.prerelease }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c9f0864

Please sign in to comment.