Skip to content

Commit

Permalink
split drafter and labeler (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine authored May 23, 2024
1 parent 0aaf9e1 commit 8bdba73
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR labeler

on:
workflow_dispatch:
pull_request_target:
types: [opened, reopened, synchronize]

jobs:
label-pr:
name: Update PR labels
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Label PR
uses: release-drafter/release-drafter@v6
with:
disable-releaser: github.ref != 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 1 addition & 6 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Release Drafter

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
contents: read
Expand All @@ -20,7 +17,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
commitish: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8bdba73

Please sign in to comment.