diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a31a1a9..8656f82 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -4,8 +4,6 @@ on: push: branches: - main - pull_request: - types: [opened, reopened, synchronize] pull_request_target: types: [opened, reopened, synchronize] @@ -22,5 +20,8 @@ jobs: - uses: release-drafter/release-drafter@v6 with: config-name: release-drafter.yml + # Only run release drafting on push to main, not on PR events + # PR events only run the autolabeler + disable-releaser: ${{ github.event_name == 'pull_request_target' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file