Browse Source

skip concurrent runs

Matthew R Kasun 2 years ago
parent
commit
9c3e75a68e
1 changed files with 12 additions and 1 deletions
  1. 12 1
      .github/workflows/branchtest.yml

+ 12 - 1
.github/workflows/branchtest.yml

@@ -4,11 +4,22 @@ on:
   workflow_dispatch:
   pull_request:
       types: [opened, synchronize, reopened]
-      branches: develop
+      branches: [develop]
 
 jobs:
+  skip-check:
+    runs-on: ubuntu-latest
+    outputs:
+      skip: ${{ steps.check.outputs.skip }}
+    steps:
+      - id: skip
+        uses: fkirc/skip-duplicate-actions@v5
+        with:
+          concurrent_skiping: 'always'
   getbranch:
     runs-on: ubuntu-latest
+    needs: skip-check
+    if: ${{ needs.skip-check.outputs.skip != 'true' }}
     outputs:
       netclientbranch: ${{ steps.checkbranch.outputs.netclientbranch }}
     steps: