Browse Source

publish on pr merge

Tigger Kindel 1 year ago
parent
commit
b703dd8b74
1 changed files with 9 additions and 0 deletions
  1. 9 0
      .github/workflows/publish.yml

+ 9 - 0
.github/workflows/publish.yml

@@ -10,10 +10,19 @@ on:
 
   pull_request:
     branches: [ develop, v2_develop ]
+    types:
+      - closed
     paths-ignore:
       - '**.md'
 
 jobs:
+  if_merged:
+    if: github.event.pull_request.merged == true
+    runs-on: ubuntu-latest
+    steps:
+    - run: |
+        echo The PR was merged
+
   publish:
     name: Build and Publish to Nuget.org
     runs-on: ubuntu-latest