lots0logs / gh-action-get-changed-files

GitHub Action that saves changed files as JSON for use by other actions.
MIT License
88 stars 38 forks source link

deleted files are not listed #5

Closed supreethdevm closed 4 years ago

supreethdevm commented 4 years ago

In the step name list json file, files_added.json and files_modified.json correctly contains the file names. However, files_deleted.json always is an empty array.

YML file I use:

on:
  push:
    branches:
    - master
    paths:
    - 'folder/**'

jobs:
  job1:
    runs-on: ubuntu-latest

    steps:
     - uses: actions/checkout@v1 
     - name: Get changed files
       uses: lots0logs/gh-action-get-changed-files@2.0.5
       with:
         token: ${{ secrets.personal_access_token }}
     - name: list json file
       run: |
        cat ${HOME}/files.json
        cat ${HOME}/files_modified.json
        cat ${HOME}/files_added.json
        cat ${HOME}/files_deleted.json
matiasz8 commented 4 years ago

Hello, I did the same steps, (almost), but, I changed the branch version.

`` jobs: TestAction: runs-on: ubuntu-latest steps:

And then, tried again. With this change works.

lots0logs commented 4 years ago

Thanks for confirming!