git.delta.rocks / unique-network / refs/commits / ac9b5eeb31df

difftreelog

Merge pull request #918 from UniqueNetwork/ci/fix-workflows

Yaroslav Bolyukin2023-04-14parents: #e02f22f #e69c3de.patch.diff
in: master
Ci/fix workflows

3 files changed

modified.github/workflows/ci-develop.ymldiffbeforeafterboth
before · .github/workflows/ci-develop.yml
1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586869783/CI+Develop2# Workflow which controls starts nested workflows.3name: develop45# Triger: PR at 'develop' branch with following types of events.6on:7  pull_request:8    branches: [ 'develop' ]9    types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]1011#Concurency group for control execution queue over github runners.12concurrency:13  group: ${{ github.workflow }}-${{ github.head_ref }}14  cancel-in-progress: true1516# List of a jobs included into Workflow.17jobs:1819  yarn-dev:20    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.21    uses: ./.github/workflows/yarn-dev.yml22    secrets: inherit    2324  unit-test:25    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.26    uses: ./.github/workflows/unit-test.yml27    secrets: inherit    2829  canary:30    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-canary')) }}    # Conditional check for draft & labels per job.31    uses: ./.github/workflows/canary.yml32    secrets: inherit # pass all secrets from initial workflow to nested3334  xcm:35    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-xcm')) }}       # Conditional check for draft & labels per job.36    uses: ./.github/workflows/xcm.yml37    secrets: inherit # pass all secrets from initial workflow to nested38    39  collator-selection:40    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-collator-selection')) }}  # Conditional check for draft & labels per job.41    uses: ./.github/workflows/collator-selection.yml42    secrets: inherit    43    44  # forkless:45  #   if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.46  #   uses: ./.github/workflows/forkless.yml47  #   secrets: inherit    4849  forkless-update-data:50    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.  51    uses: ./.github/workflows/forkless-update-data.yml52    secrets: inherit # pass all secrets from initial workflow to nested    5354  forkless-update-no-data:55    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.56    uses: ./.github/workflows/forkless-update-nodata.yml57    secrets: inherit # pass all secrets from initial workflow to nested    5859  try-runtime:60    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.  61    uses: ./.github/workflows/try-runtime.yml62    secrets: inherit # pass all secrets from initial workflow to nested    6364  node-only-update:65    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-node-only-update')) }}  # Conditional check for draft & labels per job.66    uses: ./.github/workflows/node-only-update.yml67    secrets: inherit6869  codestyle:70    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.71    uses: ./.github/workflows/codestyle.yml72    secrets: inherit
after · .github/workflows/ci-develop.yml
1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586869783/CI+Develop2# Workflow which controls starts nested workflows.3name: develop45# Triger: PR at 'develop' branch with following types of events.6on:7  pull_request:8    branches: [ 'develop' ]9    types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]1011#Concurency group for control execution queue over github runners.12concurrency:13  group: ${{ github.workflow }}-${{ github.head_ref }}14  cancel-in-progress: true1516# List of a jobs included into Workflow.17jobs:1819  yarn-dev:20    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.21    uses: ./.github/workflows/yarn-dev.yml22    secrets: inherit    2324  unit-test:25    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.26    uses: ./.github/workflows/unit-test.yml27    secrets: inherit    2829  canary:30    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-canary')) }}    # Conditional check for draft & labels per job.31    uses: ./.github/workflows/canary.yml32    secrets: inherit # pass all secrets from initial workflow to nested3334  xcm:35    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-xcm')) }}       # Conditional check for draft & labels per job.36    uses: ./.github/workflows/xcm.yml37    secrets: inherit # pass all secrets from initial workflow to nested38    39  collator-selection:40    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-collator-selection')) }}  # Conditional check for draft & labels per job.41    uses: ./.github/workflows/collator-selection.yml42    secrets: inherit    43    44  forkless-update-data:45    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.  46    uses: ./.github/workflows/forkless-update-data.yml47    secrets: inherit # pass all secrets from initial workflow to nested    4849  forkless-update-no-data:50    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.51    uses: ./.github/workflows/forkless-update-nodata.yml52    secrets: inherit # pass all secrets from initial workflow to nested    5354  try-runtime:55    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }}  # Conditional check for draft & labels per job.  56    uses: ./.github/workflows/try-runtime.yml57    secrets: inherit # pass all secrets from initial workflow to nested    5859  node-only-update:60    if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-node-only-update')) }}  # Conditional check for draft & labels per job.61    uses: ./.github/workflows/node-only-update.yml62    secrets: inherit6364  codestyle:65    if: github.event.pull_request.draft == false                                                                             # Conditional check for draft per job.66    uses: ./.github/workflows/codestyle.yml67    secrets: inherit
modified.github/workflows/ci-master.ymldiffbeforeafterboth
--- a/.github/workflows/ci-master.yml
+++ b/.github/workflows/ci-master.yml
@@ -18,15 +18,11 @@
 
   yarn-dev:
     uses: ./.github/workflows/yarn-dev.yml
+    secrets: inherit    
 
   unit-test:
     uses: ./.github/workflows/unit-test.yml
-
-  node-only-update:
-    uses: ./.github/workflows/node-only-update.yml
-
-  forkless:
-    uses: ./.github/workflows/forkless.yml
+    secrets: inherit    
 
   # canary:
   #   uses: ./.github/workflows/canary.yml
@@ -38,13 +34,30 @@
     
   collator-selection:
     uses: ./.github/workflows/collator-selection.yml
+    secrets: inherit    
 
-  # testnet:
-  #   uses: ./.github/workflows/testnet-build.yml
-  #   secrets: inherit # pass all secrets from initial workflow to nested
+  forkless-update-data:
+    uses: ./.github/workflows/forkless-update-data.yml
+    secrets: inherit # pass all secrets from initial workflow to nested    
 
+  forkless-update-no-data:
+    uses: ./.github/workflows/forkless-update-nodata.yml
+    secrets: inherit # pass all secrets from initial workflow to nested    
+
+  try-runtime:
+    uses: ./.github/workflows/try-runtime.yml
+    secrets: inherit # pass all secrets from initial workflow to nested    
+
+  node-only-update:
+    uses: ./.github/workflows/node-only-update.yml
+    secrets: inherit
+
   codestyle:
     uses: ./.github/workflows/codestyle.yml
+    secrets: inherit
 
   polkadot-types:
-    uses: ./.github/workflows/polkadot-types.yml
\ No newline at end of file
+    uses: ./.github/workflows/polkadot-types.yml
+
+
+    
\ No newline at end of file
deleted.github/workflows/forkless.ymldiffbeforeafterboth
--- a/.github/workflows/forkless.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Intermediate Nested Workflow for calling subworkflows as a parallel tasks.
-
-# name: Nesting Forkless
-
-# on:
-#   workflow_call:
-
-# jobs:
-    
-#   forkless-update-data:
-#     name: with data
-#     uses: ./.github/workflows/forkless-update-data.yml
-#     secrets: inherit # pass all secrets from initial workflow to nested    
-
-#   forkless-update-no-data:
-#     name: no data
-#     uses: ./.github/workflows/forkless-update-nodata.yml
-#     secrets: inherit # pass all secrets from initial workflow to nested    
-
-#   try-runtime:
-#     name: try-runtime
-#     uses: ./.github/workflows/try-runtime.yml
-#     secrets: inherit # pass all secrets from initial workflow to nested