Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cron-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cron-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:
jobs:
action:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
steps:
- uses: dessant/lock-threads@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cron-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pull-compliance-docsignore.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 1 deletion .github/workflows/pull-compliance.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/pull-db-tests-docsignore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: db-tests

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

jobs:
test-pgsql:
techknowlogick marked this conversation as resolved.
Show resolved Hide resolved
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 changes: 5 additions & 1 deletion .github/workflows/pull-db-tests.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pull-docker-dryrun-docsignore.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 1 deletion .github/workflows/pull-docker-dryrun.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/pull-e2e-tests-docsignore.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 1 deletion .github/workflows/pull-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down