Browse Source

Don't run build and test if only docs changed (#24530)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tags/v1.20.0-rc0
Lunny Xiao 1 year ago
parent
commit
c78b923822
No account linked to committer's email address

+ 1
- 1
.github/workflows/cron-licenses.yml View File

@@ -6,8 +6,8 @@ on:

jobs:
cron-licenses:
if: github.repository == "go-gitea/gitea"
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3

+ 1
- 0
.github/workflows/cron-lock.yml View File

@@ -15,6 +15,7 @@ concurrency:
jobs:
action:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
steps:
- uses: dessant/lock-threads@v4
with:

+ 2
- 0
.github/workflows/cron-translations.yml View File

@@ -7,6 +7,7 @@ on:
jobs:
crowdin-pull:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v3
- name: download from crowdin
@@ -31,6 +32,7 @@ jobs:
ssh_key: ${{ secrets.DEPLOY_KEY }}
crowdin-push:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
steps:
- uses: actions/checkout@v3
- name: push translations to crowdin

+ 13
- 0
.github/workflows/pull-compliance-docsignore.yml View File

@@ -0,0 +1,13 @@
name: compliance

on:
pull_request:
paths:
- "docs/**"
- "*.md"

jobs:
compliance-docs:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

+ 5
- 1
.github/workflows/pull-compliance.yml View File

@@ -1,6 +1,10 @@
name: compliance

on: [pull_request]
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

+ 38
- 0
.github/workflows/pull-db-tests-docsignore.yml View File

@@ -0,0 +1,38 @@
name: db-tests

on:
pull_request:
paths:
- "docs/**"
- "*.md"

jobs:
test-pgsql:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

test-sqlite:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

test-unit:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

test-mysql5:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

test-mysql8:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

test-mssql:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

+ 5
- 1
.github/workflows/pull-db-tests.yml View File

@@ -1,6 +1,10 @@
name: db-tests

on: [pull_request]
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

+ 13
- 0
.github/workflows/pull-docker-dryrun-docsignore.yml View File

@@ -0,0 +1,13 @@
name: docker-dryrun

on:
pull_request:
paths:
- "docs/**"
- "*.md"

jobs:
docker-dryrun:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

+ 5
- 1
.github/workflows/pull-docker-dryrun.yml View File

@@ -1,6 +1,10 @@
name: docker-dryrun

on: [pull_request]
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

+ 13
- 0
.github/workflows/pull-e2e-tests-docsignore.yml View File

@@ -0,0 +1,13 @@
name: e2e-tests

on:
pull_request:
paths:
- "docs/**"
- "*.md"

jobs:
test-e2e:
runs-on: ubuntu-latest
steps:
- run: echo "No build required"

+ 5
- 1
.github/workflows/pull-e2e-tests.yml View File

@@ -1,6 +1,10 @@
name: e2e-tests

on: [pull_request]
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

Loading…
Cancel
Save