wait-for-status-checks
wait-for-status-checks copied to clipboard
Action does not self-ignore if the job has a name
I noticed that if the job is given a name, then the action does not exclude its own check run and waits until it times out or is canceled:
jobs:
enforce-all-checks:
name: "Some name" # this causes the job to wait for itself
runs-on: ubuntu-latest
permissions:
checks: read
steps:
- name: GitHub Checks
uses: poseidon/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
Looking at the code, I'm not sure if this can be fixed – it might be a limitation of GitHub providing the running job with its ID but only reporting the name for check runs. I've not investigated further, as this is trivial to work around by simply not setting a name.