Skip to content

The environment variable ImageOS must be set (Self hosted runner) #230

Closed
@jankeesvw

Description

@jankeesvw

We are trying to use setup-ruby on a self hosted runner but we get this error:

The environment variable ImageOS must be set

I tried all kinds of things but I can't get it working, this is our current yml file for our actions.

name: tests

on: [ push ]

jobs:
  cleanup:
    runs-on: self-hosted
    steps:
      - uses: rokroskar/workflow-run-cleanup-action@master
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

  rubocop:
    runs-on: self-hosted

    steps:
      - uses: actions/checkout@v1

      - name: Set up Ruby 3.0.2
        if: steps.changes.outputs.stekkerweb == 'true'
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0.2
        env:
          ImageOS: ubuntu20

I see a mention of this issue in the readme, but it does not tell me what to do. Can someone give me a pointer on how to fix this?

Thanks! ✨

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions