mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 02:13:41 +00:00
ci: only run autolabeler on PRs, draft-release on main
This commit is contained in:
parent
1517c69595
commit
f301269efd
2 changed files with 18 additions and 3 deletions
16
.github/workflows/autolabel.yaml
vendored
Normal file
16
.github/workflows/autolabel.yaml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
autolabel:
|
||||
name: Autolabel PR
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Draft release
|
||||
id: drafter
|
||||
uses: release-drafter/release-drafter@v6
|
||||
with:
|
||||
disable-releaser: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
5
.github/workflows/draft-release.yml
vendored
5
.github/workflows/draft-release.yml
vendored
|
|
@ -4,9 +4,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
# pull_request event is required only for autolabeler
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
|
@ -24,6 +21,8 @@ jobs:
|
|||
- name: Draft release
|
||||
id: drafter
|
||||
uses: release-drafter/release-drafter@v6
|
||||
with:
|
||||
disable-autolabeler: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue