最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Status check not showing up in GitHub branch protections - Stack Overflow

programmeradmin10浏览0评论

I have a workflow running on all pull requests (branches is set to **) and all pushes to our main branch. I'm trying to require a step in my job. I've pasted a simplified version of it below, where test is a previous step in my job:

  tests-done:
    name: Finished Tests
    needs: test
    steps:
      - name: Success
        if: needs.test.result == 'success'
        run: echo "Success!"
      - name: Failure
        if: needs.tests.result != 'success'
        run: exit 1

I see the entire workflow running successfully on main on new PR merges, and I've even tried retriggering it manually from our Actions tab. But when I try requiring it from the Status checks that are required setting, I'm not finding the step at all. I've tried searching for Finished Tests, tests-done, test, etc, but with no success. This is the second job I've tried to require in the exact same way, and the other one appeared in our settings without any issue. Any advice? Thanks!

发布评论

评论列表(0)

  1. 暂无评论