Skip to content

Commit

Permalink
ci: use concurrency to cancel workflow (#525)
Browse files Browse the repository at this point in the history
* ci: use concurrency to cancel workflow

Signed-off-by: yiyiyimu <wosoyoung@gmail.com>

* test if concurrency works

Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
  • Loading branch information
Yiyiyimu committed Jun 3, 2021
1 parent 5c1aa5e commit d3ec856
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/actions/cancel-workflow-runs
Submodule cancel-workflow-runs deleted from 472349
5 changes: 5 additions & 0 deletions .github/workflows/e2e-test-ci.yml
Expand Up @@ -25,6 +25,11 @@ on:
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Expand Up @@ -16,9 +16,6 @@
# specific language governing permissions and limitations
# under the License.
#
[submodule ".github/actions/cancel-workflow-runs"]
path = .github/actions/cancel-workflow-runs
url = https://github.com/potiuk/cancel-workflow-runs
[submodule ".github/actions/paths-filter"]
path = .github/actions/paths-filter
url = https://github.com/dorny/paths-filter.git

0 comments on commit d3ec856

Please sign in to comment.