wait-on-check-action: The requested check was never run against this ref

@progapandist if you have a moment can you please help me out?

  • I am explicitly naming my jobs
  • I’m using github.sha
  • It worked when I did everything against master but now it’s not working with my default branch set to develop?
  • I’m using @master so that I have latest.

I’m running into the same problem as #7 and using the sha bafe56a6863672c681c3cf671f5e10b20abf2eaa which should have fixed it, so I’m not sure if it was reintroduced or if I’m doing it wrong.

Update: I used @master and github.sha which fixed the issue I was having. However now that I changed my default branch to be develop I’m having issues, see comments further down.

This is my config

  checks:
    name: Wait on "Lint, Test & Build" Workflow
    runs-on: ubuntu-latest
    needs: [verification]

    steps:
      - name: wait on tests
        uses: lewagon/wait-on-check-action@master
        with:
          ref: ${{ github.sha }}
          check-name: Lint, Unit Test & Build
          repo-token: ${{ github.token }}
          wait-interval: 20

This is the workflow that I’m waiting on

name: Lint, Test & Build

on:
  workflow_dispatch:
  repository_dispatch:
    types: [run-lint-test-build]

jobs:
  verification:
    name: Lint, Unit Test & Build
    runs-on: ubuntu-latest

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16

Most upvoted comments

Ah, with dispatch being an additional dependency. The documentation says that it won’t work for non-default branches, so it looks like I will have to wait for this issue to be solved.

This has been working fine for the past few days and today it started failing. I haven’t changed my config at all and I’m able to verify that the ref I am passing in is actually being run.

A few thoughts around what could be causing it.

  1. Race condition - the wait on check looks before the workflow has had a chance to spin up.
  2. The workflow is already running with the same ref from another trigger