From 58bdab80d979eaa76a561c07954ab8317a88709e Mon Sep 17 00:00:00 2001 From: Konstantin Astakhov Date: Fri, 02 Sep 2022 09:47:48 +0000 Subject: [PATCH] another trigger for xcm tests workflows --- --- 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 --- 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 -- gitstuff