Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action does not self-ignore if the job has a name #303

Open
joergbonprix opened this issue Jul 31, 2024 · 1 comment
Open

Action does not self-ignore if the job has a name #303

joergbonprix opened this issue Jul 31, 2024 · 1 comment

Comments

@joergbonprix
Copy link

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.

@bjhargrave
Copy link
Contributor

If you give the job a name, you will need to include that name in the ignore configuration. There is no way for the action to figure out the name just the job_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants