Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Created October 8, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mumoshu/47df2077bf161a81769c1a9f08736bdf to your computer and use it in GitHub Desktop.
Save mumoshu/47df2077bf161a81769c1a9f08736bdf to your computer and use it in GitHub Desktop.
GitHub Actions v2 Gotcha: It seems like we're unable to use ${{ inputs.. }} from within `runs.using` of action.yml :(
name: 'VariantRun'
description: 'Run Variant task defined in your Variantfile https://github.com/mumoshu/variant'
inputs:
image:
description: 'Docker image for Variant containers'
required: false
default: 'Dockerfile'
runs:
using: 'docker'
image: '${{ inputs.image }}'
branding:
icon: octagon
color: orange
Set up job1s
##[error]Fail to load /home/runner/work/_actions/variantdev/variant-action/master/action.yml
Current runner version: '2.158.0'
Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@v1'
Download action repository 'variantdev/variant-action@master'
##[error](Line: 10, Col: 10):
##[error](Line: 10, Col: 10): Unrecognized named-value: 'inputs'. Located at position 1 within expression: inputs.image
##[error]Fail to load /home/runner/work/_actions/variantdev/variant-action/master/action.yml
@nemith
Copy link

nemith commented Nov 25, 2022

This is a really big bummer I ran into as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment