diff --git a/.github/workflows/release-20_build-rc.yml b/.github/workflows/release-20_build-rc.yml index 72cc75835f102..d565c4f3dec78 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 008557881f4fc..03fb2e1309af7 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 477dd65dd1ebe..9f09f7784e2a2 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 241728034287f..75d5559e5b84d 100644 --- a/.github/workflows/release-31_promote-rc-to-final.yml +++ b/.github/workflows/release-31_promote-rc-to-final.yml @@ -22,13 +22,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 c7c892120d5b4..b1b3b9b7365d0 100644 --- a/.github/workflows/release-40_publish-deb-package.yml +++ b/.github/workflows/release-40_publish-deb-package.yml @@ -17,12 +17,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 58873ee0b8871..7409c3544de66 100644 --- a/.github/workflows/release-50_publish-docker.yml +++ b/.github/workflows/release-50_publish-docker.yml @@ -65,13 +65,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 78e28b7b3ba32..e2e75add1020b 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 }}