ci: better filter workflow runs

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn 2025-04-27 06:59:19 -04:00
parent 816752e4e9
commit 3b7b9fa03c
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86
2 changed files with 66 additions and 15 deletions

View File

@ -1,6 +1,39 @@
name: "CodeQL Code Scanning" name: "CodeQL Code Scanning"
on: [push, pull_request, workflow_dispatch] on:
push:
# NOTE: `!` doesn't work with `paths-ignore` :(
# So we a catch-all glob instead
# https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
paths:
- "**"
- "!.github/**"
- ".github/workflows/codeql.yml"
- "!flatpak/"
- "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
pull_request:
# See above
paths:
- "**"
- "!.github/**"
- ".github/workflows/codeql.yml"
- "!flatpak/"
- "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
workflow_dispatch:
jobs: jobs:
CodeQL: CodeQL:

View File

@ -4,21 +4,39 @@ on:
push: push:
branches-ignore: branches-ignore:
- "renovate/**" - "renovate/**"
paths-ignore: # NOTE: `!` doesn't work with `paths-ignore` :(
- "**.md" # So we a catch-all glob instead
- "**/LICENSE" # https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
- "flake.lock" paths:
- "packages/**" - "**"
- ".github/ISSUE_TEMPLATE/**" - "!.github/**"
- ".markdownlint**" - ".github/workflows/build.yml"
- ".github/workflows/trigger_builds.yml"
- "!flatpak/"
- "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
pull_request: pull_request:
paths-ignore: # See above
- "**.md" paths:
- "**/LICENSE" - "**"
- "flake.lock" - "!.github/**"
- "packages/**" - ".github/workflows/build.yml"
- ".github/ISSUE_TEMPLATE/**" - ".github/workflows/trigger_builds.yml"
- ".markdownlint**" - "!flatpak/"
- "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
workflow_dispatch: workflow_dispatch:
jobs: jobs: