Skip to content

Commit 4234fac

Browse files
committed
chore: change validation on publish
1 parent dcb3038 commit 4234fac

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
name: Publish NuGet Package
22

33
on:
4-
workflow_run:
5-
workflows: ["release-please"]
6-
branches: [master]
4+
pull_request:
75
types:
8-
- completed
6+
- closed
7+
branches:
8+
- "master"
9+
10+
# workflow_run:
11+
# workflows: ["release-please"]
12+
# branches: [master]
13+
# types:
14+
# - completed
915

1016
# push:
1117
# branches:
1218
# - release/* # Default release branch
1319

1420
jobs:
1521
publish:
16-
if: ${{ github.repository_owner == 'supabase' && github.event.workflow_run.conclusion == 'success' }}
22+
if: ${{ github.event.pull_request.merged == true && github.repository_owner == 'diegofesanto' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
1723
name: build, pack & publish
1824
runs-on: ubuntu-latest
1925
steps:

0 commit comments

Comments
 (0)