Skip to content
Compare
Choose a tag to compare
@jackton1 jackton1 released this 23 Jun 19:16
· 910 commits to main since this release
5817a9e

馃殌 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 by dir_names_exclude_current_dir

What's Changed

Full Changelog: v36...v37.0.0