Skip to content

jbangdev/setup-jbang

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

setup-jbang

Build Status GitHub release Twitter Follow

This action setup JBang cli.

Usage

Workflow

name: jbang

on:
  workflow_dispatch:

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      # Configure build steps as you'd normally do

      - name: Setup JBang
        uses: jbangdev/setup-jbang@main

      - name: properties
        run: |
          jbang properties@jbangdev
Important
This action will download a suitable Java runtime automatically if one is not available. Thus this action does not need a pre-configured Java setup. The action and JBang will though prefer to use a JDK if it is available. GitHub runners have a default Java 11 available thus it will use that Java by default. If you would like to use a different Java version/distribution, then add a actions/setup-java as needed. Example:
name: jbang

on:
  workflow_dispatch:

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      # Configure build steps as you'd normally do

      - name: Setup Java
        uses: actions/setup-java@v3
        with:
          java-version: '20'

      - name: Setup JBang
        uses: jbangdev/setup-jbang@main

      - name: complexhelloworld
        run: |
          jbang properties@jbangdev java.version

Customizing

Inputs

Following inputs can be used as step.with keys

Name Type Default Description

version

String

The JBang version to use.
Should match any of the published releases. Leave empty to use the latest.