Skip to content

Commit 726451f

Browse files
committed
chore(cd): run cd on pull request merged
1 parent a7ae178 commit 726451f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ on:
1111
- patch
1212
- minor
1313
- major
14-
push:
14+
pull_request:
1515
branches:
1616
- main
17+
types: [closed]
1718

1819
permissions:
1920
contents: write
@@ -24,6 +25,7 @@ jobs:
2425
publish-dry-run:
2526
name: "Runs cargo publish --dry-run"
2627
runs-on: ubuntu-latest
28+
if: ${{ github.event.pull_request.merged }}
2729
steps:
2830
- name: Checkout
2931
uses: actions/checkout@v6

0 commit comments

Comments
 (0)