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
--- a/.github/workflows/xcm-testnet-build.yml
+++ b/.github/workflows/xcm-testnet-build.yml
@@ -2,16 +2,8 @@
 
 # Controls when the action will run.
 on:
- # Triggers the workflow on push or pull request events but only for the master branch
-  pull_request:
-    branches:
-      - master
-    types:
-      - opened
-      - reopened
-      - synchronize   #commit(s) pushed to the pull request
-      - ready_for_review
-
+  workflow_call:
+  
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
 
@@ -19,10 +11,6 @@
 env:
   REPO_URL: ${{ github.server_url }}/${{ github.repository }}
 
-concurrency:
-  group: ${{ github.workflow }}-${{ github.head_ref }}
-  cancel-in-progress: true
-
 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
 jobs:
 
@@ -71,12 +59,11 @@
     strategy:
       matrix:
         include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}
-
 
     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
modified.github/workflows/xcm-tests.ymldiffbeforeafterboth
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
5 # Triggers the workflow after xcm-testnet-build
6 workflow_run:
7 workflows: ["xcm-testnet-build"]
8 types:
9 - completed
10 # Triggers the workflow on push or pull request events but only for the master branch5 # Triggers the workflow on push or pull request events but only for the master branch
11 pull_request:6 pull_request:
12 branches:7 branches:
31# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
32jobs:27jobs:
3328
29 xcm-testnet-build:
30 uses: ./.github/workflows/xcm-testnet-build.yml
31 secrets: inherit
32
34 prepare-execution-marix:33 prepare-execution-marix:
3534
36 name: Prepare execution matrix35 name: Prepare execution matrix
36
37 needs: [xcm-testnet-build]
3738
38 runs-on: XL39 runs-on: XL
39 outputs:40 outputs:
7879
7980
80 steps:81 steps:
81 # - name: Skip if pull request is in Draft82 - name: Skip if pull request is in Draft
82 # if: github.event.pull_request.draft == true83 if: github.event.pull_request.draft == true
83 # run: exit 184 run: exit 1
8485
85 - name: Clean Workspace86 - name: Clean Workspace
86 uses: AutoModality/action-clean@v1.1.087 uses: AutoModality/action-clean@v1.1.0