diff --git a/README.md b/README.md index d4cbd1d..a75cb73 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,9 @@ jobs: - name: Checkout Code uses: actions/checkout@v2 with: - fetch-depth: 0 # This is needed if you set `only-changed-files` to true + # 0 fetch-depth is needed if you set `only-changed-files` to true + # and if you are configuring this check to run on push events + fetch-depth: 0 - name: Produce the presidio report uses: insightsengineering/presidio-action@v1 diff --git a/action.yaml b/action.yaml index de7dd27..b147f67 100644 --- a/action.yaml +++ b/action.yaml @@ -71,6 +71,7 @@ runs: - name: Get changed files id: changed-files + if: contains(inputs.only-changed-files, 'true') uses: tj-actions/changed-files@v17 - name: Install en language models