Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .github/workflows/chore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
pull_request_target: # zizmor: ignore[dangerous-triggers] no PR code executed
branches: [main]
types: [opened, reopened, edited, synchronize]
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -13,7 +11,6 @@ concurrency:
jobs:
check-pr-title:
name: Check PR Title
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -52,17 +49,14 @@ jobs:
header: conventional-commit-pr-title
delete: true

release-drafter:
name: ${{ github.event_name == 'pull_request_target' && 'Assign Labels' || 'Draft Release' }}
assign-labels:
name: Assign Labels
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
pull-requests: write
steps:
- name: ${{ github.event_name == 'pull_request_target' && 'Assign labels' || 'Update release draft' }}
uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
- name: Assign labels
uses: release-drafter/release-drafter/autolabeler@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
with:
disable-releaser: ${{ github.event_name == 'pull_request_target' }}
disable-autolabeler: ${{ github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ github.token }}
token: ${{ github.token }}
21 changes: 21 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Drafter
on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
draft-release:
name: Draft Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Update release draft
uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1
with:
token: ${{ github.token }}
Loading