hir*_*tel 1 git github github-actions
在 GitHub Actions 工作流程中,我们多次尝试使用此命令获取由推送的提交更改的文件的文件名run: git diff-tree --no-commit-id --name-only -r ${{ github.sha }}。但它总是只返回以下日志,不给出文件名或带路径的文件名。请参见下图。
关于 Runner 类型: ubuntu-latest,它不是自托管运行器。
默认情况下,签出操作会创建浅克隆。使用
- uses: actions/checkout@v2
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Default: 1
fetch-depth: 2
Run Code Online (Sandbox Code Playgroud)
来源: https: //github.com/actions/checkout#usage
| 归档时间: |
|
| 查看次数: |
3397 次 |
| 最近记录: |