Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tj-actions/changed-files
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v36.2.1
Choose a base ref
...
head repository: tj-actions/changed-files
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v36.3.0
Choose a head ref
  • 8 commits
  • 16 files changed
  • 6 contributors

Commits on Jun 14, 2023

  1. Upgraded to v36.2.1 (#1262)

    Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
    tj-actions-bot and jackton1 authored Jun 14, 2023
    Copy the full SHA
    1f2cb3b View commit details
  2. chore(deps): lock file maintenance (#1263)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 14, 2023
    Copy the full SHA
    9559461 View commit details

Commits on Jun 15, 2023

  1. Copy the full SHA
    6cf9c82 View commit details
  2. Update README.md

    jackton1 authored Jun 15, 2023
    Copy the full SHA
    341b80d View commit details
  3. Updated README.md (#1264)

    Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
    Co-authored-by: GitHub Action <action@github.com>
    3 people authored Jun 15, 2023
    Copy the full SHA
    d144c0c View commit details
  4. chore: update test.yml

    jackton1 authored Jun 15, 2023
    Copy the full SHA
    ea90b5c View commit details

Commits on Jun 16, 2023

  1. feat: add support for complex filters (#1265)

    Co-authored-by: GitHub Action <action@github.com>
    Co-authored-by: tj-actions[bot] <109116665+tj-actions-bot@users.noreply.github.com>
    3 people authored Jun 16, 2023
    Copy the full SHA
    c25c77a View commit details
  2. Updated README.md (#1266)

    Co-authored-by: repo-ranger[bot] <repo-ranger[bot]@users.noreply.github.com>
    tj-actions-bot and repo-ranger[bot] authored Jun 16, 2023
    Copy the full SHA
    9bf0914 View commit details
Showing with 30,383 additions and 4,119 deletions.
  1. +63 −13 .github/workflows/test.yml
  2. +23 −0 HISTORY.md
  3. +72 −33 README.md
  4. +28 −4 action.yml
  5. +29,088 −3,204 dist/index.js
  6. +1 −1 dist/index.js.map
  7. +17 −0 dist/licenses.txt
  8. +2 −1 package.json
  9. +292 −0 src/changedFilesOutput.ts
  10. +13 −4 src/commitSha.ts
  11. +9 −6 src/env.ts
  12. +35 −0 src/inputs.ts
  13. +50 −278 src/main.ts
  14. +195 −6 src/utils.ts
  15. +16 −0 test/changed-files.yml
  16. +479 −569 yarn.lock
76 changes: 63 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
- name: shellcheck
uses: reviewdog/action-shellcheck@v1.17
@@ -67,7 +67,7 @@ jobs:
- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v19
if: github.event_name != 'push'
if: github.event_name == 'pull_request'
with:
token: ${{ secrets.PAT_TOKEN }}
config_path: ".eslintrc.json"
@@ -80,14 +80,14 @@ jobs:
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v15
id: changed_files
if: github.event_name != 'push'
if: github.event_name == 'pull_request'
with:
files: |
src
dist
- name: Commit files
if: steps.changed_files.outputs.files_changed == 'true' && github.event_name != 'push'
if: steps.changed_files.outputs.files_changed == 'true' && github.event_name == 'pull_request'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
@@ -188,7 +188,7 @@ jobs:
if: github.event_name == 'push'

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -245,7 +245,7 @@ jobs:
needs: build

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -282,7 +282,7 @@ jobs:
needs: build

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -318,7 +318,7 @@ jobs:
input-fetch_depth: [1, 50]

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -348,7 +348,7 @@ jobs:
if: github.event_name != 'push'

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -380,7 +380,7 @@ jobs:
fetch-depth: [1, 2, 0]

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
fetch-depth: ${{ matrix.fetch-depth }}
@@ -408,7 +408,7 @@ jobs:
needs: build

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3

- name: Download build assets
@@ -461,7 +461,7 @@ jobs:
needs: build

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3

- name: Download build assets
@@ -519,7 +519,7 @@ jobs:
fetch-depth: [0, 1, 2]

steps:
- name: Checkout to branch
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -550,6 +550,56 @@ jobs:
echo "${{ toJSON(steps.changed-files.outputs) }}"
shell:
bash
test-yaml:
name: Test changed-files with yaml
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
max-parallel: 4
matrix:
fetch-depth: [0, 1, 2]

steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
submodules: recursive
fetch-depth: ${{ matrix.fetch-depth }}

- name: Download build assets
uses: actions/download-artifact@v3
with:
name: build-assets

- name: Run changed-files with files_yaml
id: changed-files
uses: ./
with:
files_yaml: |
test:
- test/**.txt
- test/**.md
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files.outputs) }}"
shell:
bash

- name: Run changed-files with files_yaml_from_source_file
id: changed-files-from-source-file
uses: ./
with:
files_yaml_from_source_file: |
test/changed-files.yml
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files-from-source-file.outputs) }}"
shell:
bash

test:
name: Test changed-files
23 changes: 23 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

# [36.2.1](https://github.com/tj-actions/changed-files/compare/v36.2.0...v36.2.1) - (2023-06-14)

## <!-- 0 -->🚀 Features

- Add support for outputting renamed files as deleted and added ([#1260](https://github.com/tj-actions/changed-files/issues/1260)) ([90ef0b1](https://github.com/tj-actions/changed-files/commit/90ef0b1b22b674a0dea8c832029e63eed9fb8e13)) - (Tonye Jack)

## <!-- 26 -->🔄 Update

- Updated README.md ([#1261](https://github.com/tj-actions/changed-files/issues/1261))

Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([c912451](https://github.com/tj-actions/changed-files/commit/c9124514c375de5dbb9697afa6f2e36a236ee58c)) - (tj-actions[bot])

## <!-- 7 -->⚙️ Miscellaneous Tasks

- Rename git fetch arguments ([#1259](https://github.com/tj-actions/changed-files/issues/1259)) ([b9ea510](https://github.com/tj-actions/changed-files/commit/b9ea510e42795d425d659914078b74f51c774869)) - (Tonye Jack)

## <!-- 9 -->⬆️ Upgrades

- Upgraded to v36.2.0 ([#1258](https://github.com/tj-actions/changed-files/issues/1258))

Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> ([c648759](https://github.com/tj-actions/changed-files/commit/c648759d899fd6217a96579680bdae3ac01e6219)) - (tj-actions[bot])

# [36.2.0](https://github.com/tj-actions/changed-files/compare/v36.1.0...v36.2.0) - (2023-06-14)

## <!-- 0 -->🚀 Features
Loading