ci: fix improper paths-ignore usage

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn 2025-04-27 07:00:26 -04:00
parent 3b7b9fa03c
commit 57a2ef1aed
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86
2 changed files with 53 additions and 31 deletions

View File

@ -2,22 +2,38 @@ name: Flatpak
on: on:
push: push:
paths-ignore:
- "**.md"
- "**/LICENSE"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
- "nix/**"
# We don't do anything with these artifacts on releases. They go to Flathub # We don't do anything with these artifacts on releases. They go to Flathub
tags-ignore: tags-ignore:
- "*" - "*"
# 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/flatpak.yml"
- "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
pull_request: pull_request:
paths-ignore: # See above
- "**.md" paths:
- "**/LICENSE" - "**"
- ".github/ISSUE_TEMPLATE/**" - "!.github/**"
- ".markdownlint**" - ".github/workflows/flatpak.yml"
- "nix/**" - "!nix/"
- "!scripts/"
- "!.git*"
- "!.envrc"
- "!**.md"
- "COPYING.md"
- "!renovate.json"
workflow_dispatch: workflow_dispatch:
permissions: permissions:

View File

@ -4,28 +4,34 @@ on:
push: push:
tags: tags:
- "*" - "*"
paths-ignore: # NOTE: `!` doesn't work with `paths-ignore` :(
- ".github/**" # So we a catch-all glob instead
- "!.github/workflows/nix.yml" # https://github.com/orgs/community/discussions/25369#discussioncomment-3247674
- "flatpak/" paths:
- "scripts/" - "**"
- "!.github/**"
- ".github/workflows/nix.yml"
- "!flatpak/"
- "!scripts/"
- ".git*" - "!.git*"
- ".envrc" - "!.envrc"
- "**.md" - "!**.md"
- "!COPYING.md" - "COPYING.md"
- "renovate.json" - "!renovate.json"
pull_request_target: pull_request_target:
paths-ignore: paths:
- ".github/**" - "**"
- "flatpak/" - "!.github/**"
- "scripts/" - ".github/workflows/nix.yml"
- "!flatpak/"
- "!scripts/"
- ".git*" - "!.git*"
- ".envrc" - "!.envrc"
- "**.md" - "!**.md"
- "!COPYING.md" - "COPYING.md"
- "renovate.json" - "!renovate.json"
workflow_dispatch: workflow_dispatch:
permissions: permissions: