From defd0ce0fcf8dfaaf45aa3349374c72e3544e4a6 Mon Sep 17 00:00:00 2001 From: tjtanjin Date: Thu, 3 Oct 2024 01:10:00 +0800 Subject: [PATCH] ci: Reduce unnecessary pipeline runs --- .github/workflows/ci-cd-pipeline.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci-cd-pipeline.yml b/.github/workflows/ci-cd-pipeline.yml index 76a33f96..64c36d8a 100644 --- a/.github/workflows/ci-cd-pipeline.yml +++ b/.github/workflows/ci-cd-pipeline.yml @@ -4,8 +4,31 @@ run-name: Full CI/CD Pipeline on: push: branches: ["main"] + paths-ignore: + - "*.md" # ignore all markdown files at root + - "*.js" # ignore all js files at root + - "*.ts" # ignore all ts files at root + - "assets/**" # ignore root assets + - "docs/**" # ignore all docs + - "scripts/**" # ignore all scripts + - "ssr/**" # ignore ssr files + - ".github/**/*.md" # ignore markdown files for .github + - ".github/FUNDING.yml" # ignore funding yml + - ".eslintrc" # ignore eslint changes + - ".gitignore" # ignore git ignore changes pull_request: branches: ["main"] + - "*.md" # ignore all markdown files at root + - "*.js" # ignore all js files at root + - "*.ts" # ignore all ts files at root + - "assets/**" # ignore root assets + - "docs/**" # ignore all docs + - "scripts/**" # ignore all scripts + - "ssr/**" # ignore ssr files + - ".github/**/*.md" # ignore markdown files for .github + - ".github/FUNDING.yml" # ignore funding yml + - ".eslintrc" # ignore eslint changes + - ".gitignore" # ignore git ignore changes workflow_dispatch: jobs: