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!