GitHub Actions Investigation Notes
Context
Testing GitHub workflows using a Test Repository sf-trial-devops
Running self-hosted organisation action runners for GitHub as configured in repository sf-workflows.
Problem 1 - Runner did not pick up jobs
Symptoms:
Facts verified:
- Reusable workflow was accessible.
- Runner was online and Idle.
- Labels matched.
- Runner group was Default.
- Repository access was configured.
Root cause:
The repository sf-trial-devops is public, while the organization runner group had:
As a result GitHub would not assign jobs to the runner.
Resolution:
Enable:
After enabling this setting, manually triggered workflows executed successfully.
Problem 2 - Push workflow was skipped
Workflow triggers:
Reusable workflow condition:
For a push to branch dev-hotfix:
Evaluation:
Result:
This behavior is intentional.
Why two workflow runs appeared
The branch dev-hotfix had an open pull request.
A single:
creates two GitHub events:
Therefore two workflow runs are created nearly simultaneously.
Run A:
Run B:
The matching timestamps observed in GitHub Actions are expected.
Simplified Flow
Final Conclusions
Runner issue:
Skipped workflow:
Observed behaviour: