File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,36 @@ jobs:
347347 ref : ${{ env.BRANCH_NAME }}
348348 fetch-depth : 0
349349
350+ # using git commit sha for version of action to ensure we have stable version
351+ - name : Install asdf
352+ uses : asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47
353+ with :
354+ asdf_version : ${{ inputs.asdfVersion }}
355+
356+ - name : Cache asdf
357+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
358+ with :
359+ path : |
360+ ~/.asdf
361+ key : ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}-${{ inputs.asdfVersion }}
362+ restore-keys : |
363+ ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}-${{ inputs.asdfVersion }}
364+
365+ - name : Install asdf dependencies in .tool-versions
366+ uses : asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
367+ with :
368+ asdf_version : ${{ inputs.asdfVersion }}
369+ env :
370+ PYTHON_CONFIGURE_OPTS : --enable-shared
371+
372+ - name : Reinstall poetry
373+ if : ${{ inputs.reinstall_poetry }}
374+ run : |
375+ poetry_tool_version=$(cat .tool-versions | grep poetry)
376+ poetry_version=${poetry_tool_version//"poetry "}
377+ asdf uninstall poetry "$poetry_version"
378+ asdf install poetry
379+
350380 - name : Check for SAM templates
351381 id : check_sam_templates
352382 run : |
You can’t perform that action at this time.
0 commit comments