diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-16 10:53:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 02:53:18 +0000 |
commit | c78b923822f219922c4ffb982ece05c9688e9656 (patch) | |
tree | ed8eb8837f53b63fd45ef500f7a292a1785b4ab4 /.github | |
parent | 98c4089b4b9c9118e2ef27709878e26c93952c93 (diff) | |
download | gitea-c78b923822f219922c4ffb982ece05c9688e9656.tar.gz gitea-c78b923822f219922c4ffb982ece05c9688e9656.zip |
Don't run build and test if only docs changed (#24530)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cron-licenses.yml | 2 | ||||
-rw-r--r-- | .github/workflows/cron-lock.yml | 1 | ||||
-rw-r--r-- | .github/workflows/cron-translations.yml | 2 | ||||
-rw-r--r-- | .github/workflows/pull-compliance-docsignore.yml | 13 | ||||
-rw-r--r-- | .github/workflows/pull-compliance.yml | 6 | ||||
-rw-r--r-- | .github/workflows/pull-db-tests-docsignore.yml | 38 | ||||
-rw-r--r-- | .github/workflows/pull-db-tests.yml | 6 | ||||
-rw-r--r-- | .github/workflows/pull-docker-dryrun-docsignore.yml | 13 | ||||
-rw-r--r-- | .github/workflows/pull-docker-dryrun.yml | 6 | ||||
-rw-r--r-- | .github/workflows/pull-e2e-tests-docsignore.yml | 13 | ||||
-rw-r--r-- | .github/workflows/pull-e2e-tests.yml | 6 |
11 files changed, 101 insertions, 5 deletions
diff --git a/.github/workflows/cron-licenses.yml b/.github/workflows/cron-licenses.yml index 54702f4682..17b0d686d8 100644 --- a/.github/workflows/cron-licenses.yml +++ b/.github/workflows/cron-licenses.yml @@ -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 diff --git a/.github/workflows/cron-lock.yml b/.github/workflows/cron-lock.yml index e11869058c..935f926cce 100644 --- a/.github/workflows/cron-lock.yml +++ b/.github/workflows/cron-lock.yml @@ -15,6 +15,7 @@ concurrency: jobs: action: runs-on: ubuntu-latest + if: github.repository == 'go-gitea/gitea' steps: - uses: dessant/lock-threads@v4 with: diff --git a/.github/workflows/cron-translations.yml b/.github/workflows/cron-translations.yml index bc24dd4854..a7c9ceabd3 100644 --- a/.github/workflows/cron-translations.yml +++ b/.github/workflows/cron-translations.yml @@ -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 diff --git a/.github/workflows/pull-compliance-docsignore.yml b/.github/workflows/pull-compliance-docsignore.yml new file mode 100644 index 0000000000..1599e19207 --- /dev/null +++ b/.github/workflows/pull-compliance-docsignore.yml @@ -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" diff --git a/.github/workflows/pull-compliance.yml b/.github/workflows/pull-compliance.yml index 88342e67d6..ace2b15a9b 100644 --- a/.github/workflows/pull-compliance.yml +++ b/.github/workflows/pull-compliance.yml @@ -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 }} diff --git a/.github/workflows/pull-db-tests-docsignore.yml b/.github/workflows/pull-db-tests-docsignore.yml new file mode 100644 index 0000000000..c04f763c3e --- /dev/null +++ b/.github/workflows/pull-db-tests-docsignore.yml @@ -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" diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index 3446b71155..bef1df1515 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -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 }} diff --git a/.github/workflows/pull-docker-dryrun-docsignore.yml b/.github/workflows/pull-docker-dryrun-docsignore.yml new file mode 100644 index 0000000000..7c74efb34a --- /dev/null +++ b/.github/workflows/pull-docker-dryrun-docsignore.yml @@ -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" diff --git a/.github/workflows/pull-docker-dryrun.yml b/.github/workflows/pull-docker-dryrun.yml index 3d2207940f..c3cdefc7a7 100644 --- a/.github/workflows/pull-docker-dryrun.yml +++ b/.github/workflows/pull-docker-dryrun.yml @@ -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 }} diff --git a/.github/workflows/pull-e2e-tests-docsignore.yml b/.github/workflows/pull-e2e-tests-docsignore.yml new file mode 100644 index 0000000000..e809af7216 --- /dev/null +++ b/.github/workflows/pull-e2e-tests-docsignore.yml @@ -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" diff --git a/.github/workflows/pull-e2e-tests.yml b/.github/workflows/pull-e2e-tests.yml index a854489e4d..611a6b0741 100644 --- a/.github/workflows/pull-e2e-tests.yml +++ b/.github/workflows/pull-e2e-tests.yml @@ -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 }} |