git.delta.rocks / unique-network / refs/commits / 7ef2a7f8cbd4

difftreelog

try another trigger for xcm workflows

Konstantin Astakhov2022-09-02parent: #59a0f2f.patch.diff
in: master

2 files changed

modified.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth
1name: xcm-testnet-build1name: xcm-testnet-build
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on: [pull_request]
5 # Triggers the workflow on push or pull request events but only for the master branch
6 pull_request:
7 branches:
8 - master
9 types:
10 - opened
11 - reopened
12 - synchronize #commit(s) pushed to the pull request
13 - ready_for_review
145
15 # Allows you to run this workflow manually from the Actions tab6 # Allows you to run this workflow manually from the Actions tab
16 workflow_dispatch:7 workflow_dispatch:
modified.github/workflows/xcm-tests.ymldiffbeforeafterboth
--- a/.github/workflows/xcm-tests.yml
+++ b/.github/workflows/xcm-tests.yml
@@ -2,11 +2,6 @@
 
 # Controls when the action will run.
 on:
- # Triggers the workflow after xcm-testnet-build 
-  workflow_run:
-    workflows: ["xcm-testnet-build"]
-    types: 
-      - completed  
  # Triggers the workflow on push or pull request events but only for the master branch
   pull_request:
     branches:
@@ -31,10 +26,15 @@
 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
 jobs:
 
+  xcm-build:
+    uses: ./.github/workflows/xcm-testnet-build.yml
+
   prepare-execution-marix:
 
     name: Prepare execution matrix
 
+    needs: [xcm-build]
+      
     runs-on: XL
     outputs:
       matrix: ${{ steps.create_matrix.outputs.matrix }}