actions / actions/runner

Support for starting job service on condition is met

Open
#822 17 comments 104 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Describe the enhancement
Add support of if: property to jobs.<job-id>.services.<service-id> to start services only in case a condition is met.

Code Snippet

jobs:
  my_job:
    services:
      my_service:
        if: ${{ some expression }}
        ....

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides a GitHub Actions workflow example but names no implementation files or tests. Start by locating the runner entry point that processes jobs..services., then trace how service startup properties are evaluated; done means an if expression controls whether the service starts and coverage verifies both condition outcomes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github-actions
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.