Skip to content

Commit 555bb9d

Browse files
lujun9972claude
andcommitted
修复 GitHub Actions workflow: 升级 checkout 版本, 添加执行权限和错误日志
- actions/checkout@v2 → @v4 - 添加 chmod +x 确保 habash 可执行 - 添加 set -x 便于排查错误 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e0eff6 commit 555bb9d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/github-action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ jobs:
44
Finish-Habitica-Tasks:
55
runs-on: ubuntu-latest
66
steps:
7-
- name: Check out bahash code
8-
uses: actions/checkout@v2
7+
- name: Check out habash code
8+
uses: actions/checkout@v4
99
with:
1010
fetch-depth: 0
1111
repository: nasfarley88/habash
12+
- name: 确保 habash 可执行
13+
run: chmod +x ./habash
1214
- name: 提交 habitica 任务
13-
run: ./habash up "写博客"
15+
run: |
16+
set -x
17+
./habash up "写博客"
1418
env:
1519
HABITICA_TOKEN: ${{ secrets.HABITICA_TOKEN }}
1620
HABITICA_UUID: ${{ secrets.HABITICA_UUID }}

0 commit comments

Comments
 (0)