File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -279,9 +279,13 @@ jobs:
279279 - name : Setup
280280 uses : grafana/plugin-ci-workflows/actions/plugins/setup@main
281281 with :
282- go-version : ${{ inputs.go-version || env.DEFAULT_GO_VERSION }}
283- node-version : ${{ inputs.node-version || env.DEFAULT_NODE_VERSION }}
282+ # The priority to setup the node version is:
283+ # 1. inputs.node-version
284+ # 2. inputs.plugin-directory/.nvmrc
285+ # 3. workflow-level DEFAULT_NODE_VERSION
286+ node-version : ${{ inputs.node-version || (hashFiles(format('{0}/.nvmrc', inputs.plugin-directory)) == '' && env.DEFAULT_NODE_VERSION || '') }}
284287 node-version-file : ${{ inputs.plugin-directory }}/.nvmrc
288+ go-version : ${{ inputs.go-version || env.DEFAULT_GO_VERSION }}
285289 golangci-lint-version : ${{ inputs.golangci-lint-version || env.DEFAULT_GOLANGCI_LINT_VERSION }}
286290 go-setup-caching : ${{ inputs.go-setup-caching }}
287291
You can’t perform that action at this time.
0 commit comments