From 2f20ef2c6b54979fd3a57acdc24cf1607ec7500d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Dec 2021 21:31:50 -0500 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 4393dc49..24365ff9 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ jobs: - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 - name: List all changed files run: | @@ -140,11 +140,11 @@ Support this project with a :star: - name: Get changed files using defaults id: changed-files - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 - name: Get changed files using a comma separator id: changed-files-comma - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: separator: "," @@ -166,7 +166,7 @@ Support this project with a :star: - name: Get specific changed files id: changed-files-specific - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: files: | my-file.txt @@ -204,14 +204,14 @@ Support this project with a :star: - name: Use a source file or list of file(s) to populate to files input. id: changed-files-specific-source-file - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: files_from_source_file: | test/changed-files-list.txt - name: Use a source file or list of file(s) to populate to files input and optionally specify more files. id: changed-files-specific-source-file-and-specify-files - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: files_from_source_file: | test/changed-files-list.txt @@ -220,13 +220,13 @@ Support this project with a :star: - name: Use a different commit SHA id: changed-files-custom-sha - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: sha: ${{ github.event.pull_request.head.sha }} - name: Use a different base SHA id: changed-files-custom-base-sha - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: base_sha: "2096ed0" @@ -238,7 +238,7 @@ Support this project with a :star: - name: Run changed-files with defaults on the dir1 id: changed-files-for-dir1 - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: path: dir1 @@ -250,32 +250,12 @@ Support this project with a :star: - name: Run changed-files using the last commit on the remote branch id: changed-files-since-last-remote-commit - uses: tj-actions/changed-files@v2.0.1 + uses: tj-actions/changed-files@v12.2 with: since_last_remote_commit: "true" ``` -### Running [pre-commit](https://pre-commit.com/) on all modified files - -```yaml -... - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v2.0.1 - - - name: Pre-commit - uses: pre-commit/action@v2.0.0 - with: - extra_args: -v --hook-stage push --files ${{ steps.changed-files.outputs.all_changed_files }} - token: ${{ secrets.github_token }} -``` - Screen Shot 2021-11-19 at 4 59 21 PM * Free software: [MIT license](LICENSE)