Skip to content

Commit

Permalink
Update to Node 20 (#14)
Browse files Browse the repository at this point in the history
* Intermediate

* chore(deps): bump @actions/github from 5.1.1 to 6.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.1.1 to 6.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Mario Mastrodicasa <mario.mastrodicasa@masesgroup.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 28, 2023
1 parent 69676d6 commit c32f771
Show file tree
Hide file tree
Showing 7 changed files with 284 additions and 221 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.JS 16
- name: Setup Node.JS 20
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: npm
- run: npm install
- run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'

- name: Install dependencies
run: |
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<a href="https://github.com/masesgroup/retrieve-changed-files/actions"><img alt="masesgroup/retrieve-changed-files status" src="https://github.com/masesgroup/retrieve-changed-files/workflows/Test/badge.svg"></a>
</p>

# Get All Changed Files
# Retrieve All Changed Files

Get all of the files changed/modified in a pull request or push's commits.
You can choose to get all changed files, only added files, only modified files, only removed files, only renamed files, or all added and modified files.
Retrieve all of the files changed/modified in a pull request or push's commits.
You can choose to retrieve all changed files, only added files, only modified files, only removed files, only renamed files, or all added and modified files.
These outputs are available via the `steps` output context.
The `steps` output context exposes the output names `all`, `added`, `modified`, `removed`, `renamed`, and `added_modified`.

Expand All @@ -24,29 +24,29 @@ See [action.yml](action.yml)
# Scenarios
- [Get all changed files as space-delimited](#get-all-changed-files-as-space-delimited)
- [Get all added and modified files as CSV](#get-all-added-and-modified-files-as-csv)
- [Get all removed files as JSON](#get-all-removed-files-as-json)
- [Retrieve all changed files as space-delimited](#retrieve-all-changed-files-as-space-delimited)
- [Retrieve all added and modified files as CSV](#retrieve-all-added-and-modified-files-as-csv)
- [Retrieve all removed files as JSON](#retrieve-all-removed-files-as-json)
## Get all changed files as space-delimited
## Retrieve all changed files as space-delimited
If there are any files with spaces in them, then this method won't work and the step will fail.
Consider using one of the other formats if that's the case.
```yaml
- id: files
uses: masesgroup/retrieve-changed-files@v2
uses: masesgroup/retrieve-changed-files@v3
- run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Do something with this ${changed_file}."
done
```
## Get all added and modified files as CSV
## Retrieve all added and modified files as CSV
```yaml
- id: files
uses: masesgroup/retrieve-changed-files@v2
uses: masesgroup/retrieve-changed-files@v3
with:
format: 'csv'
- run: |
Expand All @@ -56,11 +56,11 @@ Consider using one of the other formats if that's the case.
done
```
## Get all removed files as JSON
## Retrieve all removed files as JSON
```yaml
- id: files
uses: masesgroup/retrieve-changed-files@v2
uses: masesgroup/retrieve-changed-files@v3
with:
format: 'json'
- run: |
Expand All @@ -81,4 +81,4 @@ $ yarn all

# License

The scripts and documentation in this project are released under the [MIT License](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: node16
using: node20
main: dist/index.js
inputs:
token:
Expand Down
Loading

0 comments on commit c32f771

Please sign in to comment.