Skip to content

env and runner var testing 04 #7

env and runner var testing 04

env and runner var testing 04 #7

Workflow file for this run

name: Actions Runner Controller Demo
on:
push:
branches:
- dev
- main
workflow_dispatch:
branches:
- dev
- main
env:
RUNNER: ${{ vars.RUNNER }}
jobs:
Explore-GitHub-Actions:
runs-on: ${{ env.RUNNER }}

Check failure on line 17 in .github/workflows/self-host.yaml

View workflow run for this annotation

GitHub Actions / Actions Runner Controller Demo

Invalid workflow file

The workflow is not valid. .github/workflows/self-host.yaml (Line: 17, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RUNNER
environment:
name: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
steps:
- run: echo "🎉 This job uses runner scale set runners!"