diff --git a/.github/workflows/release-20_build-rc.yml b/.github/workflows/release-20_build-rc.yml index f98ec9359df84..d5398766f31e6 100644 --- a/.github/workflows/release-20_build-rc.yml +++ b/.github/workflows/release-20_build-rc.yml @@ -34,13 +34,14 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: release_tag: ${{ steps.validate_inputs.outputs.release_tag }} diff --git a/.github/workflows/release-21_build-runtimes.yml b/.github/workflows/release-21_build-runtimes.yml index 764e7e2657b22..a78d5159e187d 100644 --- a/.github/workflows/release-21_build-runtimes.yml +++ b/.github/workflows/release-21_build-runtimes.yml @@ -54,13 +54,14 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: release_tag: ${{ steps.validate_inputs.outputs.release_tag }} diff --git a/.github/workflows/release-30_publish_release_draft.yml b/.github/workflows/release-30_publish_release_draft.yml index 230de26607cf3..5454f6c5ccc6e 100644 --- a/.github/workflows/release-30_publish_release_draft.yml +++ b/.github/workflows/release-30_publish_release_draft.yml @@ -57,13 +57,14 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [ check-synchronization ] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: release_tag: ${{ steps.validate_inputs.outputs.release_tag }} diff --git a/.github/workflows/release-31_promote-rc-to-final.yml b/.github/workflows/release-31_promote-rc-to-final.yml index 3e3e9b7a39b48..7426bce5e15b6 100644 --- a/.github/workflows/release-31_promote-rc-to-final.yml +++ b/.github/workflows/release-31_promote-rc-to-final.yml @@ -37,13 +37,14 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [ check-synchronization ] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: release_tag: ${{ steps.validate_inputs.outputs.release_tag }} diff --git a/.github/workflows/release-40_publish-deb-package.yml b/.github/workflows/release-40_publish-deb-package.yml index 75c3fb2758962..4853ab9279e7e 100644 --- a/.github/workflows/release-40_publish-deb-package.yml +++ b/.github/workflows/release-40_publish-deb-package.yml @@ -30,12 +30,13 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} call-publish-workflow: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} uses: ./.github/workflows/release-reusable-publish-packages.yml with: tag: ${{ inputs.tag }} diff --git a/.github/workflows/release-41_publish-rpm-package.yml b/.github/workflows/release-41_publish-rpm-package.yml index 9caf66558add6..aea2a3da81c8e 100644 --- a/.github/workflows/release-41_publish-rpm-package.yml +++ b/.github/workflows/release-41_publish-rpm-package.yml @@ -29,12 +29,13 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} call-publish-workflow: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} uses: ./.github/workflows/release-reusable-publish-packages.yml with: tag: ${{ inputs.tag }} diff --git a/.github/workflows/release-50_publish-docker.yml b/.github/workflows/release-50_publish-docker.yml index ec772c9b241ec..af40fcab43610 100644 --- a/.github/workflows/release-50_publish-docker.yml +++ b/.github/workflows/release-50_publish-docker.yml @@ -101,13 +101,14 @@ env: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: version: ${{ steps.validate_inputs.outputs.VERSION }} diff --git a/.github/workflows/release-reusable-publish-packages.yml b/.github/workflows/release-reusable-publish-packages.yml index 99a024d9fd38c..5b8b09e608edc 100644 --- a/.github/workflows/release-reusable-publish-packages.yml +++ b/.github/workflows/release-reusable-publish-packages.yml @@ -25,13 +25,14 @@ on: jobs: check-synchronization: + if: ${{ github.event_name == 'workflow_dispatch' }} uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main secrets: fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} validate-inputs: needs: [check-synchronization] - if: needs.check-synchronization.outputs.checks_passed == 'true' + if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }} runs-on: ubuntu-latest outputs: release_tag: ${{ steps.validate_inputs.outputs.release_tag }}