Explorar o código

publish on pr merge

Tigger Kindel %!s(int64=2) %!d(string=hai) anos
pai
achega
b703dd8b74
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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