Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24

- name: Install dependencies
run: |
Expand All @@ -83,7 +83,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- id: files
uses: ./
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This project is a fork of [jitterbit/get-changed-files](https://github.com/jitte
See [action.yml](action.yml)

```yaml
- uses: Ana06/get-changed-files@v2.3.0
- uses: Ana06/get-changed-files@v2.4.0
with:
# Format of the steps output context.
# Can be 'space-delimited', 'csv', or 'json'.
Expand All @@ -61,7 +61,7 @@ Consider using one of the other formats if that's the case.

```yaml
- id: files
uses: Ana06/get-changed-files@v2.3.0
uses: Ana06/get-changed-files@v2.4.0
- run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Do something with this ${changed_file}."
Expand All @@ -75,7 +75,7 @@ Consider using one of the other formats if that's the case.

```yaml
- id: files
uses: Ana06/get-changed-files@v2.3.0
uses: Ana06/get-changed-files@v2.4.0
with:
filter: '*.php'
- run: |
Expand All @@ -91,7 +91,7 @@ Therefore, including all YML files first and excluding the YML files of your `.g
If those two globs were inverted, you **would** include all the YML files, with the ones in your `.github/*/` directories.

```yaml
- uses: Ana06/get-changed-files@v2.3.0
- uses: Ana06/get-changed-files@v2.4.0
with:
filter: |
*.yml
Expand All @@ -102,7 +102,7 @@ If those two globs were inverted, you **would** include all the YML files, with

```yaml
- id: files
uses: Ana06/get-changed-files@v2.3.0
uses: Ana06/get-changed-files@v2.4.0
with:
format: 'csv'
filter: '*'
Expand All @@ -117,7 +117,7 @@ If those two globs were inverted, you **would** include all the YML files, with

```yaml
- id: files
uses: Ana06/get-changed-files@v2.3.0
uses: Ana06/get-changed-files@v2.4.0
with:
format: 'json'
filter: '*'
Expand All @@ -137,6 +137,12 @@ yarn
yarn all
```

To update dist/index.js

```bash
yarn && rm -rf dist/ && yarn all
```

## License

The scripts and documentation in this project are released under the [MIT License](LICENSE)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branding:
icon: file
color: purple
runs:
using: node20
using: node24
main: dist/index.js
inputs:
token:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "get-changed-files",
"description": "GitHub action that gets all changed files in a pull request or push.",
"version": "2.3.0",
"version": "2.4.0",
"private": true,
"author": "Jitterbit, Inc.",
"license": "MIT",
Expand All @@ -26,7 +26,7 @@
],
"main": "lib/main.js",
"engines": {
"node": "^20"
"node": "^24"
},
"scripts": {
"build": "tsc",
Expand Down