Skip to content

lmangani/flux-github-action

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

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flux GitHub Action

This action sets up a Fluxpipe runner to execute Flux scripts.

Usage

steps:
  - name: Flux in GitHub Actions
    uses: lmangani/flux-github-action@main

Examples

Flux w/ CSV Output

jobs:
  fluxpipe:
    runs-on: ubuntu-latest
    name: Run a Flux Script
    steps:
      - name: Flux Run
        id: flux
        uses: lmangani/flux-github-action@csv
        with:
          flux-script: 'import "array" import "runtime" array.from(rows: [{version: runtime.version()}])'
      - name: Flux Result
        run: echo "${{ steps.flux.outputs.result }}"
#datatype,string,long,string
#group,false,false,false
#default,_result,,
,result,table,version
,,0,v0.192.0

Flux w/ JSON Output

jobs:
  fluxpipe:
    runs-on: ubuntu-latest
    name: Run a Flux Script
    steps:
      - name: Flux Run
        id: flux
        uses: lmangani/flux-github-action@json
        with:
          flux-script: 'import "array" import "runtime" array.from(rows: [{version: runtime.version()}])'
      - name: Flux Result
        run: echo "${{ steps.flux.outputs.result }}"
[
	{
		columns: {
			result: {
				index: 1,
				type: string
			},
			table: {
				index: 2,
				type: long
			},
			version: {
				index: 3,
				type: string
			}
		},
		rows: [
			{
				result: _result,
				table: 0,
				version: v0.192.0
			}
		]
	}
]

License

This project released under the MIT License