From cb4ffdbfc5d46024135729c8720352bab2779712 Mon Sep 17 00:00:00 2001 From: "Allen D. Householder" Date: Fri, 27 Oct 2023 11:30:17 -0400 Subject: [PATCH 1/4] limit python build runs to push/pr against python code --- .github/workflows/python-app.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 023dc99f..45202a9e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -6,8 +6,16 @@ name: Python application on: push: branches: [ "main" ] + paths: + - vultron/** + - pyproject.toml + - .github/workflows/python-app.yml pull_request: branches: [ "main" ] + paths: + - vultron/** + - pyproject.toml + - .github/workflows/python-app.yml permissions: contents: read From 1952da3fe001dc3eaf92bd5be94b1f9800f86b61 Mon Sep 17 00:00:00 2001 From: "Allen D. Householder" Date: Fri, 27 Oct 2023 11:34:10 -0400 Subject: [PATCH 2/4] add test changes to triggering events in python-app.yml --- .github/workflows/python-app.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 45202a9e..b94a66f9 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -8,12 +8,14 @@ on: branches: [ "main" ] paths: - vultron/** + - test/** - pyproject.toml - .github/workflows/python-app.yml pull_request: branches: [ "main" ] paths: - vultron/** + - test/** - pyproject.toml - .github/workflows/python-app.yml From 1347d3d6cb70f2ef5377be085fec3b70a6f9cfe8 Mon Sep 17 00:00:00 2001 From: "Allen D. Householder" Date: Fri, 27 Oct 2023 11:36:43 -0400 Subject: [PATCH 3/4] limit markdown lint runs to when md files change --- .github/workflows/lint_md_changes.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint_md_changes.yml b/.github/workflows/lint_md_changes.yml index 5c85b77d..a90cf353 100644 --- a/.github/workflows/lint_md_changes.yml +++ b/.github/workflows/lint_md_changes.yml @@ -1,5 +1,11 @@ name: "Lint Markdown (Changes)" -on: [push, pull_request] +on: + push: + paths: + - '**/*.md' + pull_request: + paths: + - '**/*.md' jobs: lint: From 93085a271c1e0c9321212ee87ae5acb5cb461878 Mon Sep 17 00:00:00 2001 From: "Allen D. Householder" Date: Fri, 27 Oct 2023 11:43:20 -0400 Subject: [PATCH 4/4] include markdown lint workflow itself as part of the trigger --- .github/workflows/lint_md_changes.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint_md_changes.yml b/.github/workflows/lint_md_changes.yml index a90cf353..b5d1e906 100644 --- a/.github/workflows/lint_md_changes.yml +++ b/.github/workflows/lint_md_changes.yml @@ -3,9 +3,11 @@ on: push: paths: - '**/*.md' + - .github/workflows/lint_md_changes.yml pull_request: paths: - '**/*.md' + - .github/workflows/lint_md_changes.yml jobs: lint: