How to get file names of files updated by commit in GitHub Actions?

前端 未结 1 1985
遥遥无期
遥遥无期 2021-01-28 10:32

In a GitHub Actions workflow, we tried multiple times to get the file names of the files changed by the pushed commit with this command run: git diff-tree --no-commit-id -

相关标签:
1条回答
  • 2021-01-28 11:05

    The checkout action creates a shallow clone by default. Use

      - uses: actions/checkout@v2
        with:
          # Number of commits to fetch. 0 indicates all history for all branches and tags.
          # Default: 1
          fetch-depth: 2
    

    source: https://github.com/actions/checkout#usage

    0 讨论(0)
提交回复
热议问题