Skip to content

SPIN_VERSION env var is set by this action #65

@vdice

Description

@vdice

As seen here, this action sets the SPIN_VERSION env var in the action environment.

This means users of this action attempting to supply their own value via an env var of the same name won't be able to do so.

Consider the following:

env:
    SPIN_VERSION: v2.4.2
    
jobs:
  myjob:
      - name: Install Spin
        uses: fermyon/actions/spin/setup@v1
        with:
          version: ${{ env.SPIN_VERSION }}

env.SPIN_VERSION will end up resolving to the output of spin --version per

const result = await exec.getExecOutput('spin', ['--version'])
.

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