git.delta.rocks / unique-network / refs/commits / 58bdab80d979

difftreelog

another trigger for xcm tests workflows

Konstantin Astakhov2022-09-02parent: #3c3c01d.patch.diff
in: master

2 files changed

modified.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
5 # Triggers the workflow on push or pull request events but only for the master branch
6 pull_request:5 workflow_call:
7 branches:6
8 - master
9 types:
10 - opened
11 - reopened
12 - synchronize #commit(s) pushed to the pull request
13 - ready_for_review
14
15 # Allows you to run this workflow manually from the Actions tab7 # Allows you to run this workflow manually from the Actions tab
16 workflow_dispatch:8 workflow_dispatch:
19env:11env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}12 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.head_ref }}
24 cancel-in-progress: true
2513
26# A workflow run is made up of one or more jobs that can run sequentially or in parallel14# A workflow run is made up of one or more jobs that can run sequentially or in parallel
27jobs:15jobs:
74
7562
76 steps:63 steps:
77 #- name: Skip if pull request is in Draft64 - name: Skip if pull request is in Draft
78 # if: github.event.pull_request.draft == true65 if: github.event.pull_request.draft == true
79 # run: exit 166 run: exit 1
8067
81 - name: Clean Workspace68 - name: Clean Workspace
82 uses: AutoModality/action-clean@v1.1.069 uses: AutoModality/action-clean@v1.1.0
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,16 @@
 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
 jobs:
 
+  xcm-testnet-build:
+    uses: ./.github/workflows/xcm-testnet-build.yml
+    secrets: inherit
+
   prepare-execution-marix:
 
     name: Prepare execution matrix
 
+    needs: [xcm-testnet-build]
+
     runs-on: XL
     outputs:
       matrix: ${{ steps.create_matrix.outputs.matrix }}
@@ -78,9 +79,9 @@
 
 
     steps:
-      # - name: Skip if pull request is in Draft
-      #  if: github.event.pull_request.draft == true
-      #  run: exit 1
+       - name: Skip if pull request is in Draft
+        if: github.event.pull_request.draft == true
+        run: exit 1
 
       - name: Clean Workspace
         uses: AutoModality/action-clean@v1.1.0