A local-first personal finance app
:robot: Adding path filters so workflows only run when required (#6364)
Michael Clark64bc7dbf6ef6
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 637d135bde..a013c9c928 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -2,6 +2,16 @@ name: E2E Testson:pull_request:+ paths:+ - "packages/**"+ - "package.json"+ - "yarn.lock"+ - ".github/workflows/e2e-test.yml"+ - "!packages/sync-server/**" # Sync server changes don't affect E2E tests+ - "!packages/api/**" # API changes don't affect E2E tests+ - "!packages/ci-actions/**" # CI actions changes don't affect E2E tests+ - "!packages/docs/**" # Docs changes don't affect E2E tests+ - "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect E2E testsenv:GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}diff --git a/.github/workflows/electron-pr.yml b/.github/workflows/electron-pr.ymlindex 84a62625a4..b9b24d9345 100644--- a/.github/workflows/electron-pr.yml+++ b/.github/workflows/electron-pr.yml@@ -9,6 +9,15 @@ env:on:pull_request:+ paths:+ - "packages/**"+ - "package.json"+ - "yarn.lock"+ - ".github/workflows/electron-pr.yml"+ - "!packages/api/**" # API changes don't affect Electron+ - "!packages/ci-actions/**" # CI actions changes don't affect Electron+ - "!packages/docs/**" # Docs changes don't affect Electron+ - "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect Electronconcurrency:group: ${{ github.workflow }}-${{ github.event.pull_request.number }}diff --git a/.github/workflows/size-compare.yml b/.github/workflows/size-compare.ymlindex 89e025b795..b0cde644bb 100644--- a/.github/workflows/size-compare.yml+++ b/.github/workflows/size-compare.yml@@ -14,8 +14,14 @@ name: Compare Sizeson:pull_request_target:paths:- - 'packages/**'- - '!packages/sync-server/**'+ - "packages/**"+ - "package.json"+ - "yarn.lock"+ - ".github/workflows/size-compare.yml"+ - "!packages/sync-server/**" # Sync server changes don't affect the size of the web/api+ - "!packages/ci-actions/**" # CI actions changes don't affect the size of the web/api+ - "!packages/docs/**" # Docs changes don't affect the size of the web/api+ - "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect the size of the web/apiconcurrency:group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}@@ -35,7 +41,7 @@ jobs:- name: Set up environmentuses: ./.github/actions/setupwith:- download-translations: 'false'+ download-translations: "false"- name: Wait for ${{github.base_ref}} web build to succeeduses: fountainhead/action-wait-for-check@5a908a24814494009c4bb27c242ea38c93c593be # v1.2.0@@ -79,7 +85,7 @@ jobs:with:branch: ${{github.base_ref}}workflow: build.yml- workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it+ workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked itname: build-statspath: base- name: Download API build artifact from ${{github.base_ref}}@@ -88,7 +94,7 @@ jobs:with:branch: ${{github.base_ref}}workflow: build.yml- workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it+ workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked itname: api-build-statspath: base- name: Download build stats from PR@@ -96,7 +102,7 @@ jobs:with:pr: ${{github.event.pull_request.number}}workflow: build.yml- workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it+ workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked itname: build-statspath: headallow_forks: true@@ -105,7 +111,7 @@ jobs:with:pr: ${{github.event.pull_request.number}}workflow: build.yml- workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it+ workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked itname: api-build-statspath: headallow_forks: truediff --git a/.github/workflows/vrt-update-generate.yml b/.github/workflows/vrt-update-generate.ymlindex c050a1a3bd..c9f270e575 100644--- a/.github/workflows/vrt-update-generate.yml+++ b/.github/workflows/vrt-update-generate.yml@@ -5,8 +5,15 @@ on:pull_request:types: [opened, synchronize, reopened]paths:- - 'packages/**'- - '.github/workflows/vrt-update-generate.yml'+ - "packages/**"+ - "package.json"+ - "yarn.lock"+ - ".github/workflows/vrt-update-generate.yml"+ - "!packages/sync-server/**" # Sync server changes don't affect the VRT+ - "!packages/api/**" # API changes don't affect the VRT+ - "!packages/ci-actions/**" # CI actions changes don't affect the VRT+ - "!packages/docs/**" # Docs changes don't affect the VRT+ - "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect the VRTpermissions:contents: readdiff --git a/upcoming-release-notes/6364.md b/upcoming-release-notes/6364.mdnew file mode 100644index 0000000000..a0bbaf1c6d--- /dev/null+++ b/upcoming-release-notes/6364.md@@ -0,0 +1,7 @@+---+category: Maintenance+authors: [MikesGlitch]+---++Preventing Github UI Workflows when unrelated files change+