Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
/ asdf2json Public archive

CLI to parse asdf .tool-versions as JSON

License

Notifications You must be signed in to change notification settings

kachick/asdf2json

Repository files navigation

asdf2json

CI

Parse asdf .tool-versions and outputs with JSON

Usage

Assume, in your GitHub Actions workflow.

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install asdf parser
        run: wget https://github.com/kachick/asdf2json/releases/download/v1/asdf2json && chmod 755 asdf2json
      - id: asdf-parser
        run: cat .tool-versions | ./asdf2json | echo "json=$(</dev/stdin)" | tee -a $GITHUB_OUTPUT
      - uses: actions/setup-node@v3
        with:
          node-version: "${{ fromJson(steps.asdf-parser.outputs.json).nodejs }}"

License

MIT License

Originally imported from kachick/action-parse-asdf-tool-versions@v2.0.1.

About

CLI to parse asdf .tool-versions as JSON

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •