Skip to content

Commit

Permalink
ci: skip more checks on manual new tag/release pushes (already done i…
Browse files Browse the repository at this point in the history
…n the previous ci runs for the same commit)
  • Loading branch information
spytheman committed Oct 5, 2023
1 parent beaa33a commit b10342e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docs_ci.yml
Expand Up @@ -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
Expand All @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/module_docs_ci.yml
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/native_backend_tests_ci.yml
Expand Up @@ -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:
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/vinix_ci.yml
Expand Up @@ -9,6 +9,7 @@ on:
- master
paths-ignore:
- "**.md"
- "**.yml"

jobs:
vinix-build:
Expand Down

0 comments on commit b10342e

Please sign in to comment.