Code Monkey home page Code Monkey logo

Comments (6)

superbrothers avatar superbrothers commented on May 30, 2024 1

@abatilo This workflow works correctly.

name: asdf
on: push

jobs:
  up:
    name: Update
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: asdf setup
        uses: asdf-vm/actions/[email protected]
      - name: asdf install
        run: |
          set -x
          asdf plugin add aws-iam-authenticator https://github.com/stefansedich/asdf-aws-iam-authenticator
          asdf install
          asdf exec aws-iam-authenticator help

from actions.

smorimoto avatar smorimoto commented on May 30, 2024

You should be able to install it as described in the README.

Add asdf plugin

steps:
  - name: Add <NAME>
    run: asdf plugin add <NAME> <GIT URL>

Install your .tool-versions tools

steps:
  - name: asdf_install
    uses: asdf-vm/actions/install@v1

from actions.

abatilo avatar abatilo commented on May 30, 2024

This doesn't appear to work:

 
name: asdf
on: push

jobs:
  up:
    name: Update
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: asdf setup
        uses: asdf-vm/actions/[email protected]
      - name: asdf plugin add
        run: |
          asdf plugin add aws-iam-authenticator https://github.com/stefansedich/asdf-aws-iam-authenticator
      - name: asdf install
        uses: asdf-vm/actions/install@v1

https://github.com/abatilo/asdf-action-demo/runs/814402543#step:5:10

The install action tries to add all the plugins again and fails

from actions.

smorimoto avatar smorimoto commented on May 30, 2024

Indeed...

from actions.

vic avatar vic commented on May 30, 2024

What about using before_install and doing asdf plugin add ... in there ?

https://github.com/asdf-vm/actions/blob/master/install/action.yml#L14

from actions.

abatilo avatar abatilo commented on May 30, 2024

I guess we can close this for now. So the solution is just to only use the setup action and do everything else inline which seems perfectly reasonable

from actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.