Don't run build and test if only docs changed (#24530)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
98c4089b4b
commit
c78b923822
11 changed files with 101 additions and 5 deletions
2
.github/workflows/cron-licenses.yml
vendored
2
.github/workflows/cron-licenses.yml
vendored
|
@ -6,8 +6,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cron-licenses:
|
cron-licenses:
|
||||||
if: github.repository == "go-gitea/gitea"
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'go-gitea/gitea'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
|
|
1
.github/workflows/cron-lock.yml
vendored
1
.github/workflows/cron-lock.yml
vendored
|
@ -15,6 +15,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
action:
|
action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'go-gitea/gitea'
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v4
|
||||||
with:
|
with:
|
||||||
|
|
2
.github/workflows/cron-translations.yml
vendored
2
.github/workflows/cron-translations.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
crowdin-pull:
|
crowdin-pull:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'go-gitea/gitea'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: download from crowdin
|
- name: download from crowdin
|
||||||
|
@ -31,6 +32,7 @@ jobs:
|
||||||
ssh_key: ${{ secrets.DEPLOY_KEY }}
|
ssh_key: ${{ secrets.DEPLOY_KEY }}
|
||||||
crowdin-push:
|
crowdin-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'go-gitea/gitea'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: push translations to crowdin
|
- name: push translations to crowdin
|
||||||
|
|
13
.github/workflows/pull-compliance-docsignore.yml
vendored
Normal file
13
.github/workflows/pull-compliance-docsignore.yml
vendored
Normal 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"
|
6
.github/workflows/pull-compliance.yml
vendored
6
.github/workflows/pull-compliance.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: compliance
|
name: compliance
|
||||||
|
|
||||||
on: [pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
|
38
.github/workflows/pull-db-tests-docsignore.yml
vendored
Normal file
38
.github/workflows/pull-db-tests-docsignore.yml
vendored
Normal 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"
|
6
.github/workflows/pull-db-tests.yml
vendored
6
.github/workflows/pull-db-tests.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: db-tests
|
name: db-tests
|
||||||
|
|
||||||
on: [pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
|
13
.github/workflows/pull-docker-dryrun-docsignore.yml
vendored
Normal file
13
.github/workflows/pull-docker-dryrun-docsignore.yml
vendored
Normal 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"
|
6
.github/workflows/pull-docker-dryrun.yml
vendored
6
.github/workflows/pull-docker-dryrun.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: docker-dryrun
|
name: docker-dryrun
|
||||||
|
|
||||||
on: [pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
|
13
.github/workflows/pull-e2e-tests-docsignore.yml
vendored
Normal file
13
.github/workflows/pull-e2e-tests-docsignore.yml
vendored
Normal 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"
|
6
.github/workflows/pull-e2e-tests.yml
vendored
6
.github/workflows/pull-e2e-tests.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: e2e-tests
|
name: e2e-tests
|
||||||
|
|
||||||
on: [pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
|
|
Loading…
Reference in a new issue