You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ni...@apache.org on 2022/09/09 07:53:20 UTC

[pulsar] 01/08: [improve][CI] Remove "Cancel duplicate workflows" workflow (#17490)

This is an automated email from the ASF dual-hosted git repository.

nicoloboschi pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 1a78e32a915d92b2f93f9172cee319110636a80b
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Sep 8 14:51:03 2022 +0300

    [improve][CI] Remove "Cancel duplicate workflows" workflow (#17490)
    
    - there's no need for this anymore since GitHub Actions has built-in support
      for cancelling duplicate workflows and this is used in Pulsar CI workflows.
    
    (cherry picked from commit cbdf700b679bc121a99f27bffcb9a0c9832487d0)
---
 .../workflows/ci-cancel-duplicate-workflows.yaml   | 69 ----------------------
 1 file changed, 69 deletions(-)

diff --git a/.github/workflows/ci-cancel-duplicate-workflows.yaml b/.github/workflows/ci-cancel-duplicate-workflows.yaml
deleted file mode 100644
index 776f1b1b893..00000000000
--- a/.github/workflows/ci-cancel-duplicate-workflows.yaml
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-name: CI - Cancel duplicate workflows
-on:
-  workflow_run:
-    # this could be any workflow that is always executed by PUSH/PR operation
-    workflows: ["CI - Unit"]
-    types: ['requested']
-
-jobs:
-
-  cancel-workflow-runs:
-    runs-on: ubuntu-20.04
-    steps:
-      # the potiuk/cancel-workflow-run action has been allow-listed by
-      # the Apache Infrastructure
-      - name: cancel duplicate ci-build-macos.yaml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: ci-build-macos.yaml
-      - name: cancel duplicate ci-go-functions-style.yaml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: ci-go-functions-style.yaml
-      - name: cancel duplicate ci-go-functions-test.yaml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: ci-go-functions-test.yaml
-      - name: cancel duplicate ci-pulsar-website-build.yaml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: ci-pulsar-website-build.yaml
-      - name: cancel duplicate pulsar-ci.yaml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: pulsar-ci.yaml
-      - name: cancel duplicate ci-documentbot.yml
-        uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          cancelMode: allDuplicates
-          workflowFileName: ci-documentbot.yml