diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..5f483d2
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,7 @@
+version: 2
+updates:
+ - package-ecosystem: 'github-actions'
+ directory: '/'
+ schedule:
+ interval: weekly
+ open-pull-requests-limit: 2
diff --git a/.github/labels.yml b/.github/labels.yml
new file mode 100644
index 0000000..f7a0c5d
--- /dev/null
+++ b/.github/labels.yml
@@ -0,0 +1,39 @@
+- name: bug
+ color: '#d73a4a'
+ description: Something isn't working
+- name: chore
+ color: '#bfd4f2'
+ description: Pull requests that perform chore tasks
+- name: dependencies
+ color: '#0366d6'
+ description: Pull requests that update a dependency file
+- name: documentation
+ color: '#0075ca'
+ description: Improvements or additions to documentation
+- name: duplicate
+ color: '#cfd3d7'
+ description: This issue or pull request already exists
+- name: enhancement
+ color: '#a2eeef'
+ description: New feature or request
+- name: good first issue
+ color: '#7057ff'
+ description: Good for newcomers
+- name: help wanted
+ color: '#008672'
+ description: Extra attention is needed
+- name: invalid
+ color: '#e4e669'
+ description: This doesn't seem right
+- name: maintenance
+ color: '#C5F459'
+ description: Pull requests that perform maintenance tasks
+- name: question
+ color: '#d876e3'
+ description: Further information is requested
+- name: wontfix
+ color: '#ffffff'
+ description: This will not be worked on
+- name: configuration
+ color: '#d93f0b'
+ description: Update a Deployment Specific Parameter
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 92ccaae..fde9b4e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,7 +4,7 @@ on:
push:
paths-ignore: [ '*.md' ]
branches:
- - master
+ - main
jobs:
build:
diff --git a/.github/workflows/maintenance-label-sync.yaml b/.github/workflows/maintenance-label-sync.yaml
new file mode 100644
index 0000000..abdd129
--- /dev/null
+++ b/.github/workflows/maintenance-label-sync.yaml
@@ -0,0 +1,29 @@
+name: Maintenance - Label Sync
+on:
+ push:
+ branches:
+ - 'main'
+ paths:
+ - '.github/labels.yml'
+ workflow_dispatch: # Enables on-demand/manual triggering: https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
+
+jobs:
+
+ label-sync:
+
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+ issues: write
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ sparse-checkout: .github/labels.yml
+
+ - uses: EndBug/label-sync@v2
+ with:
+ config-file: .github/labels.yml
+ delete-other-labels: false
+ dry-run: false
diff --git a/.github/workflows/pr-require-label.yaml b/.github/workflows/pr-require-label.yaml
new file mode 100644
index 0000000..6c09260
--- /dev/null
+++ b/.github/workflows/pr-require-label.yaml
@@ -0,0 +1,32 @@
+name: Pull Request - Require Label
+on:
+ merge_group:
+ pull_request:
+ types:
+ - labeled
+ - opened
+ - reopened
+ - synchronize
+ - unlabeled
+
+jobs:
+ require-pr-label:
+
+ runs-on: ubuntu-latest
+
+ permissions:
+ pull-requests: write
+
+ steps:
+ - uses: mheap/github-action-required-labels@v5
+ with:
+ mode: minimum
+ count: 1
+ labels: |
+ bug
+ chore
+ configuration
+ dependencies
+ enhancement
+ maintenance
+ add_comment: true
diff --git a/.github/workflows/pull-request-verification.yml b/.github/workflows/pull-request-verification.yml
index fea75cc..2e83ae7 100644
--- a/.github/workflows/pull-request-verification.yml
+++ b/.github/workflows/pull-request-verification.yml
@@ -3,7 +3,7 @@ on:
pull_request:
paths-ignore: [ '*.md' ]
branches:
- - master
+ - main
- '**'
jobs:
diff --git a/README.md b/README.md
index b5e0f4c..cc15ea5 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+# NOTE
+
+Repository forked on 2025-09-03 due to inactivity on dorny/paths-filter and by dorny for greater than 18 months.
+
# Paths Changes Filter
[GitHub Action](https://github.com/features/actions) that enables conditional execution of workflow steps and jobs, based on the files modified by pull request, on a feature
@@ -46,7 +50,7 @@ don't allow this because they don't work on a level of individual jobs or steps.
## Example
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: changes
with:
filters: |
@@ -79,12 +83,12 @@ For more scenarios see [examples](#examples) section.
- Improved listing of matching files with `list-files: shell` and `list-files: escape` options
- Paths expressions are now evaluated using [picomatch](https://github.com/micromatch/picomatch) library
-For more information, see [CHANGELOG](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
+For more information, see [CHANGELOG](https://github.com/whoDoneItAgain/paths-filter/blob/master/CHANGELOG.md)
## Usage
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
with:
# Defines filters applied to detected changed files.
# Each filter has a name and a list of rules.
@@ -193,7 +197,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
filters: |
@@ -237,7 +241,7 @@ jobs:
frontend: ${{ steps.filter.outputs.frontend }}
steps:
# For pull requests it's not necessary to checkout the code
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
filters: |
@@ -283,7 +287,7 @@ jobs:
packages: ${{ steps.filter.outputs.changes }}
steps:
# For pull requests it's not necessary to checkout the code
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
filters: |
@@ -325,7 +329,7 @@ jobs:
pull-requests: read
steps:
- uses: actions/checkout@v4
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
filters: ... # Configure your filters
@@ -350,7 +354,7 @@ jobs:
# This may save additional git fetch roundtrip if
# merge-base is found within latest 20 commits
fetch-depth: 20
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
base: develop # Change detection against merge-base with this branch
@@ -374,7 +378,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# Use context to get the branch where commits were pushed.
@@ -408,7 +412,7 @@ jobs:
# Filter to detect which files were modified
# Changes could be, for example, automatically committed
- - uses: dorny/paths-filter@v3
+ - uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
base: HEAD
@@ -423,7 +427,7 @@ jobs:
Define filter rules in own file
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# Path to file where filters are defined
@@ -436,7 +440,7 @@ jobs:
Use YAML anchors to reuse path expression(s) inside another rule
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# &shared is YAML anchor,
@@ -457,7 +461,7 @@ jobs:
Consider if file was added, modified or deleted
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# Changed file can be 'added', 'modified', or 'deleted'.
@@ -483,7 +487,7 @@ jobs:
Detect changes in folder only for some file extensions
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# This makes it so that all the patterns have to match a file for it to be
@@ -511,7 +515,7 @@ jobs:
Passing list of modified files as command line args in Linux shell
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# Enable listing of files matching each filter.
@@ -537,7 +541,7 @@ jobs:
Passing list of modified files as JSON array to another action
```yaml
-- uses: dorny/paths-filter@v3
+- uses: whoDoneItAgain/paths-filter@v3
id: filter
with:
# Enable listing of files matching each filter.
@@ -560,8 +564,8 @@ jobs:
## See also
-- [test-reporter](https://github.com/dorny/test-reporter) - Displays test results from popular testing frameworks directly in GitHub
+- [test-reporter](https://github.com/whoDoneItAgain/test-reporter) - Displays test results from popular testing frameworks directly in GitHub
## License
-The scripts and documentation in this project are released under the [MIT License](https://github.com/dorny/paths-filter/blob/master/LICENSE)
+The scripts and documentation in this project are released under the [MIT License](https://github.com/whoDoneItAgain/paths-filter/blob/master/LICENSE)
diff --git a/action.yml b/action.yml
index e7d24f5..9efb7d7 100644
--- a/action.yml
+++ b/action.yml
@@ -1,6 +1,5 @@
-name: 'Paths Changes Filter'
+name: 'Paths Changes Filter Finder'
description: 'Execute your workflow steps only if relevant files are modified.'
-author: 'Michal Dorner '
inputs:
token:
description: 'GitHub Access Token'