sbt / sbt/sbt-github-actions

Support setting OS (runs-on) for publish job

Open
#8 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
199
Forks
67
Avg merge
6h 24m
Merged PRs (30d)
3

Description

What

Could you/we add support for changing the runs-on setting for the publish job too?

Why

For self-hosted runners, you need to set a custom githubWorkflowOSes. It then gets set on the build job, but not on the publish job (as you've documented in the Readme).

However, since we have a private Maven repo (Nexus), we'd like to be able to publish into that using our self-hosted runners.

Contributor guide

Open the contributing guide

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

Start with the Readme section documenting githubWorkflowOSes and trace how that setting is applied to the build and publish jobs. Check the generated workflow configuration for the publish job; done means a custom runs-on value is applied there as well, allowing publishing through a self-hosted runner.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, scala
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.