diff --git a/.github/workflows/collator-selection.yml b/.github/workflows/collator-selection.yml index 96f295ed1e..5d97a55c0b 100644 --- a/.github/workflows/collator-selection.yml +++ b/.github/workflows/collator-selection.yml @@ -13,74 +13,14 @@ env: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - - prepare-execution-marix: - name: Prepare execution matrix - runs-on: [self-hosted] - outputs: - matrix: ${{ steps.create_matrix.outputs.matrix }} - - steps: - - name: Clean Workspace - uses: AutoModality/action-clean@v1.1.0 - - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3.1.0 - with: - ref: ${{ github.head_ref }} #Checking out head commit - - - name: Read .env file - uses: xom9ikk/dotenv@v2 - - - name: Create Execution matrix - uses: CertainLach/create-matrix-action@v4 - id: create_matrix - with: - matrix: | - network {opal}, relay_branch {${{ env.UNIQUEWEST_MAINNET_BRANCH }}} - network {quartz}, relay_branch {${{ env.KUSAMA_MAINNET_BRANCH }}} - collator-selection: - needs: prepare-execution-marix # The type of runner that the job will run on runs-on: [self-hosted] - - timeout-minutes: 1380 - - name: ${{ matrix.network }} - continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false. - - 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: Clean Workspace uses: AutoModality/action-clean@v1.1.0 - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3.1.0 - with: - ref: ${{ github.head_ref }} #Checking out head commit - - # Prepare SHA - - name: Prepare SHA - uses: ./.github/actions/prepare - - - name: Read .env file - uses: xom9ikk/dotenv@v2 - - - name: Log in to Docker Hub - uses: docker/login-action@v3.2.0 - with: - username: ${{ secrets.CORE_DOCKERHUB_USERNAME }} - password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} - - name: Check and pull polkadot image id: polkadot uses: cloudposse/github-action-docker-image-exists@main @@ -92,15 +32,6 @@ jobs: password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} tag: ${{ matrix.relay_branch }} - - name: Clean Workspace - if: always() - uses: AutoModality/action-clean@v1.1.0 - - - name: Remove builder cache - if: always() - run: | - docker system prune -a -f - outputs: result: ${{ steps.polkadot.outputs.exists }} result_conclusion: ${{ steps.polkadot.outputs.conclusion }}