修复 GitHub Actions workflow: 升级 checkout 版本, 添加执行权限和错误日志 #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 提交 habitica 任务 | |
| on: [push] | |
| jobs: | |
| Finish-Habitica-Tasks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out habash code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| repository: nasfarley88/habash | |
| - name: 确保 habash 可执行 | |
| run: chmod +x ./habash | |
| - name: 提交 habitica 任务 | |
| run: | | |
| set -x | |
| ./habash up "写博客" | |
| env: | |
| HABITICA_TOKEN: ${{ secrets.HABITICA_TOKEN }} | |
| HABITICA_UUID: ${{ secrets.HABITICA_UUID }} |