From a1e87664f4b39c4980be58586d1185a28080b053 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 26 Aug 2022 21:07:29 +0300 Subject: [PATCH] ci: minimise work on commits/PRs, that affect only .yml files --- .github/workflows/c2v.yml | 2 ++ .github/workflows/ci.yml | 2 ++ .github/workflows/ci_sanitized.yml | 6 ++++++ .github/workflows/containers_ci.yml | 2 ++ .github/workflows/docs_ci.yml | 16 ++++++++++++---- .github/workflows/sdl_ci.yml | 6 ++++++ 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/c2v.yml b/.github/workflows/c2v.yml index a06e672ba..491ff59ae 100644 --- a/.github/workflows/c2v.yml +++ b/.github/workflows/c2v.yml @@ -4,12 +4,14 @@ on: push: paths-ignore: - "**.md" + - "**.yml" - "doc/**" - "examples/**" - "tutorials/**" pull_request: paths-ignore: - "**.md" + - "**.yml" - "doc/**" - "examples/**" - "tutorials/**" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a241f876a..5434d5441 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,11 @@ on: push: paths-ignore: - "**.md" + - "**.yml" pull_request: paths-ignore: - "**.md" + - "**.yml" concurrency: group: build-ci-${{ github.event.pull_request.number || github.sha }} diff --git a/.github/workflows/ci_sanitized.yml b/.github/workflows/ci_sanitized.yml index 4784ae24a..84a3b070d 100644 --- a/.github/workflows/ci_sanitized.yml +++ b/.github/workflows/ci_sanitized.yml @@ -39,6 +39,9 @@ on: - 'vlib/v/markused/**.v' - 'vlib/v/preludes/**.v' - 'vlib/v/embed_file/**.v' + paths-ignore: + - "**.md" + - "**.yml" pull_request: paths: - '!**' @@ -66,6 +69,9 @@ on: - 'vlib/v/markused/**.v' - 'vlib/v/preludes/**.v' - 'vlib/v/embed_file/**.v' + paths-ignore: + - "**.md" + - "**.yml" concurrency: group: build-sanitized-${{ github.event.pull_request.number || github.sha }} diff --git a/.github/workflows/containers_ci.yml b/.github/workflows/containers_ci.yml index 2a2b0dc51..4fc25b972 100644 --- a/.github/workflows/containers_ci.yml +++ b/.github/workflows/containers_ci.yml @@ -4,9 +4,11 @@ on: push: paths-ignore: - "**.md" + - "**.yml" pull_request: paths-ignore: - "**.md" + - "**.yml" concurrency: group: build-containers-${{ github.event.pull_request.number || github.sha }} diff --git a/.github/workflows/docs_ci.yml b/.github/workflows/docs_ci.yml index 37e709ba0..b2bec1f50 100644 --- a/.github/workflows/docs_ci.yml +++ b/.github/workflows/docs_ci.yml @@ -1,8 +1,16 @@ name: Docs CI -### Run on *EVERY* commit. The documentation *SHOULD* stay valid, and -### the developers should receive early warning if they break it. -on: [push, pull_request] +### Run on *EVERY* .v or .md related commit. +### The documentation *SHOULD* stay valid, and the developers should receive +### early warning, if they break it. + +on: + push: + paths-ignore: + - "**.yml" + pull_request: + paths-ignore: + - "**.yml" jobs: check-markdown: @@ -31,7 +39,7 @@ jobs: uses: actions/checkout@v2 with: repository: vlang/v - ref: master # important + ref: master # important path: pv - name: Check against parent commit diff --git a/.github/workflows/sdl_ci.yml b/.github/workflows/sdl_ci.yml index b42ac8ddd..3be5c0231 100644 --- a/.github/workflows/sdl_ci.yml +++ b/.github/workflows/sdl_ci.yml @@ -4,9 +4,15 @@ on: push: paths-ignore: - "**.md" + - "**.yml" pull_request: paths-ignore: - "**.md" + - "**.yml" + +concurrency: + group: sdl-ci-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true jobs: v-compiles-sdl-examples: -- 2.30.2