This action sets up a Fluxpipe runner to execute Flux scripts.
steps:
- name: Flux in GitHub Actions
uses: lmangani/flux-github-action@main
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
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
}
]
}
]
This project released under the MIT License