🚀 New Feature
- This version introduces support for using Github's REST API to retrieve the list of changed files without requiring the checkout action.
Example
name: CI
on:
pull_request:
branches:
- main
jobs:
# -------------------------------------------------------------
# Event `pull_request`: Returns all changed pull request files.
# --------------------------------------------------------------
job: # Example - Using GitHub's API
# NOTE:
# - This is limited to pull_request* events and would raise an error for other events.
# - A maximum of 3000 files can be returned.
runs-on: ubuntu-latest
name: Test changed-files
permissions:
pull-requests: read
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
🔥 Breaking Change
- Removes the deprecated
dir_names_exclude_root
input which has been replaced bydir_names_exclude_current_dir
What's Changed
- Upgraded to v36.4.1 by @tj-actions-bot in #1283
- chore(deps): lock file maintenance by @renovate in #1284
- chore(deps): lock file maintenance by @renovate in #1285
- chore(deps): lock file maintenance by @renovate in #1287
- chore(deps): update tj-actions/verify-changed-files action to v16 by @renovate in #1288
- chore(deps): lock file maintenance by @renovate in #1290
- feat: add support for retrieving changed files via github rest api by @jackton1 in #1289
- Updated README.md by @tj-actions-bot in #1292
- remove: deprecated dir_names_exclude_root by @jackton1 in #1291
- Updated README.md by @tj-actions-bot in #1295
- chore: use input api url by @jackton1 in #1293
- chore(deps): lock file maintenance by @renovate in #1297
Full Changelog: v36...v37.0.0