ci: 优化 GitHub Actions 工作流日志输出
- 添加 Logging 步骤,输出更多调试信息 - 打印 GitHub Event 的 JSON 数据 - 输出最新提交的 Commit 信息
This commit is contained in:
5
.github/workflows/GitHub上下文.yaml
vendored
5
.github/workflows/GitHub上下文.yaml
vendored
@@ -23,3 +23,8 @@ jobs:
|
|||||||
echo "仓库Clone URL: ${{ github.event.repository.clone_url }}"
|
echo "仓库Clone URL: ${{ github.event.repository.clone_url }}"
|
||||||
echo "仓库SSH URL: ${{ github.event.repository.ssh_url }}"
|
echo "仓库SSH URL: ${{ github.event.repository.ssh_url }}"
|
||||||
echo "仓库Git URL: ${{ github.event.repository.git_url }}"
|
echo "仓库Git URL: ${{ github.event.repository.git_url }}"
|
||||||
|
- name: Logging
|
||||||
|
run: |
|
||||||
|
echo "${{toJSON(github.event)}}"
|
||||||
|
echo "${{ github.event.head_commit.message }}"
|
||||||
|
echo "---"
|
||||||
|
Reference in New Issue
Block a user