cli / gh-extension-precompile

Action for publishing binary GitHub CLI extensions
MIT License
93 stars 41 forks source link

Make go version a variable #5

Closed heaths closed 2 years ago

heaths commented 2 years ago

https://github.com/cli/gh-extension-precompile/blob/7d68a916d25a2c6fb201a9c9f49adb3c07b8c214/action.yml#L19

Rather than hardcoding if we require newer compiler features, could this be made a variable with a default e.g.,

inputs: 
  go-version:
    description: 'The Go version to download (if necessary) and use. Supports semver spec and ranges.'
    default: '1.16'

# ...

    - uses: actions/setup-go@v2
      with:
        go-version: ${{ inputs.go-version }}