Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitive/get-changed-files
GitHub Actions to get changes files
https://github.com/nitive/get-changed-files
Last synced: 7 days ago
JSON representation
GitHub Actions to get changes files
- Host: GitHub
- URL: https://github.com/nitive/get-changed-files
- Owner: Nitive
- License: mit
- Created: 2021-04-17T12:09:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T10:49:33.000Z (about 1 year ago)
- Last Synced: 2024-11-11T07:49:32.348Z (3 months ago)
- Language: TypeScript
- Size: 659 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# get-changed-files action
A GitHub action to get changed in PR or after push actions. It should be used to create build matrix in monorepos to run tests on changed files only.
## Example
```yaml
jobs:
produce-packages-matrix:
runs-on: ubuntu-latest
outputs:
files: ${{ steps.produce-matrix.outputs.files }}
empty: ${{ steps.produce-matrix.outputs.empty }}
steps:
- uses: actions/checkout@v4- name: Produce packages matrix from folder structure
id: produce-matrix
uses: Nitive/get-changed-files@v2
with:
files: |
packages/*/package-lint:
needs: produce-packages-matrix
if: ${{ needs.produce-packages-matrix.outputs.empty == 'false' }}
runs-on: ubuntu-latest
strategy:
matrix:
package: ${{ fromJson(needs.produce-packages-matrix.outputs.files) }}
steps:
- uses: actions/checkout@v4- name: Lint package
id: working-directory
run: make lint
working-directory: ${{ matrix.package }}
```