Skip to content

Commit

Permalink
Revert "Reuse branches and paths filters"
Browse files Browse the repository at this point in the history
> The workflow is not valid. Anchors are not currently supported.
  • Loading branch information
evgfilim1 committed Feb 11, 2023
1 parent 6203a3e commit 61b7f2a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and push Docker image

on:
push:
branches: &branches
branches:
- master
paths: &paths
paths:
- ".github/workflows/build.yaml"
- "locales/**.po"
- "userbot/**"
Expand All @@ -13,8 +13,16 @@ on:
- "Dockerfile"
- "requirements.txt"
pull_request:
branches: *branches
paths: *paths
branches:
- master
paths:
- ".github/workflows/build.yaml"
- "locales/**.po"
- "userbot/**"
- ".dockerignore"
- "dev-requirements.txt"
- "Dockerfile"
- "requirements.txt"

env:
REGISTRY: ghcr.io
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Lint code

on:
push:
branches: &branches
branches:
- master
paths: &paths
paths:
- ".github/workflows/lint.yaml"
- "locales/*.pot"
- "userbot/**"
Expand All @@ -15,8 +15,18 @@ on:
- "scripts/potctl.py"
- "pyproject.toml"
pull_request:
branches: *branches
paths: *paths
branches:
- master
paths:
- ".github/workflows/lint.yaml"
- "locales/*.pot"
- "userbot/**"
- ".pre-commit-config.yaml"
- "dev-requirements.txt"
- "requirements.txt"
- "scripts/check_usages.py"
- "scripts/potctl.py"
- "pyproject.toml"

permissions:
contents: read
Expand Down

0 comments on commit 61b7f2a

Please sign in to comment.