Skip to content

Commit 287f7c2

Browse files
committed
[FR] Simplify the Release Workflow
1 parent a92fdc1 commit 287f7c2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/version-code-and-release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ on:
1111
- 'detection_rules/**'
1212
- 'tests/**'
1313
- '**/*.md'
14-
types: [opened, reopened, synchronize, labeled]
15-
push:
16-
branches:
17-
- main
18-
paths:
19-
- 'pyproject.toml'
14+
types: [opened, reopened, synchronize, labeled, closed]
2015

2116
permissions:
2217
contents: read
@@ -70,7 +65,7 @@ jobs:
7065
fi
7166
7267
release_drafter:
73-
if: github.ref == 'refs/heads/main'
68+
if: github.event.pull_request.merged == true
7469
runs-on: ubuntu-latest
7570
permissions:
7671
contents: write

0 commit comments

Comments
 (0)