GitHub Workflow持续失败的原因排查与求助
GitHub Workflow持续失败求助
问题描述
我的GitHub Workflow一直执行失败,仅修改了cron表达式(改为每小时运行),其余配置和原文件一致。本地使用Windows系统,怀疑是否与Workflow采用ubuntu-latest运行环境有关。
已尝试的无效操作
- 通过
git config user.name和git config credentials.username将本地Git仓库用户名从08Miguel24改为当前用户名08Aristodemus24 - 将本地和远程仓库的分支均重命名为
main - 为GitHub账户创建细粒度个人访问令牌
原配置文件(profile-3d.yml)
on: schedule: # 03:00 JST == 18:00 UTC - cron: "0 18 * * *" workflow_dispatch: jobs: build: runs-on: ubuntu-latest name: generate-github-profile-3d-contrib steps: - uses: actions/checkout@v3 - uses: yoshi389111/github-profile-3d-contrib@0.7.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USERNAME: ${{ github.repository_owner }} - name: Commit & Push run: | git config user.name github-actions git config user.email github-actions@github.com git add -A . git commit -m "generated" git push
修改后的当前配置文件
on: schedule: # runs every hour - cron: "0 * * * *" workflow_dispatch: jobs: build: runs-on: ubuntu-latest name: generate-github-profile-3d-contrib steps: - uses: actions/checkout@v3 - uses: yoshi389111/github-profile-3d-contrib@0.7.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USERNAME: ${{ github.repository_owner }} - name: Commit & Push run: | git config user.name github-actions git config user.email github-actions@github.com git add -A . git commit -m "generated" git push
内容的提问来源于stack exchange,提问作者Mig Rivera Cueva
相关产品推荐
相关产品推荐

