From b10342eeaab2c3d769f19bef91f70cd7bdddd9d8 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 5 Oct 2023 12:00:51 +0300 Subject: [PATCH] ci: skip more checks on manual new tag/release pushes (already done in the previous ci runs for the same commit) --- .github/workflows/docs_ci.yml | 2 ++ .github/workflows/module_docs_ci.yml | 2 +- .github/workflows/native_backend_tests_ci.yml | 5 +++++ .github/workflows/vinix_ci.yml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_ci.yml b/.github/workflows/docs_ci.yml index d12673fdad..5f7bfb93f5 100644 --- a/.github/workflows/docs_ci.yml +++ b/.github/workflows/docs_ci.yml @@ -15,6 +15,7 @@ on: jobs: check-markdown: runs-on: ubuntu-20.04 + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' timeout-minutes: 5 steps: - uses: actions/checkout@v3 @@ -27,6 +28,7 @@ jobs: report-missing-fn-doc: runs-on: ubuntu-20.04 + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' timeout-minutes: 5 env: MOPTIONS: --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/ diff --git a/.github/workflows/module_docs_ci.yml b/.github/workflows/module_docs_ci.yml index 1bd17b3c3a..40a1b12edd 100644 --- a/.github/workflows/module_docs_ci.yml +++ b/.github/workflows/module_docs_ci.yml @@ -16,5 +16,5 @@ jobs: - name: Build module documentation run: ./v doc -m -f html vlib/ - name: Deploy docs to vercel - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && github.event.repository.full_name == 'vlang/v' && github.event.ref == 'refs/heads/master' }} run: npx vercel --confirm --prod --name vmodules --token ${{ secrets.VERCEL_TOKEN }} vlib/_docs/ || true diff --git a/.github/workflows/native_backend_tests_ci.yml b/.github/workflows/native_backend_tests_ci.yml index 7133b7da28..eb8bc39bb6 100644 --- a/.github/workflows/native_backend_tests_ci.yml +++ b/.github/workflows/native_backend_tests_ci.yml @@ -42,6 +42,10 @@ on: - 'vlib/v/gen/native/**.v' - 'vlib/v/gen/native/tests/**.v' +concurrency: + group: native-backend-ci-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: native-backend: strategy: @@ -52,6 +56,7 @@ jobs: windows-2019 ] runs-on: ${{ matrix.os }} + if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/vinix_ci.yml b/.github/workflows/vinix_ci.yml index de64a2344c..fa81e7f346 100644 --- a/.github/workflows/vinix_ci.yml +++ b/.github/workflows/vinix_ci.yml @@ -9,6 +9,7 @@ on: - master paths-ignore: - "**.md" + - "**.yml" jobs: vinix-build: