Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmangani/flux-github-action
Flux in GitHub Actions
https://github.com/lmangani/flux-github-action
flux github-action github-actions influxdb
Last synced: about 1 month ago
JSON representation
Flux in GitHub Actions
- Host: GitHub
- URL: https://github.com/lmangani/flux-github-action
- Owner: lmangani
- License: mit
- Created: 2023-01-26T15:13:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-21T19:22:22.000Z (over 1 year ago)
- Last Synced: 2024-09-30T23:41:50.253Z (about 2 months ago)
- Topics: flux, github-action, github-actions, influxdb
- Language: Dockerfile
- Homepage:
- Size: 47.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
# Flux GitHub Action
This action sets up a [Fluxpipe](https://github.com/metrico/fluXpipe) runner to execute [Flux](https://github.com/influxdata/flux) scripts.
# Usage
```yaml
steps:
- name: Flux in GitHub Actions
uses: lmangani/flux-github-action@main
```
## Examples
### Flux w/ CSV Output
```yaml
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 }}"
```
```csv
#datatype,string,long,string
#group,false,false,false
#default,_result,,
,result,table,version
,,0,v0.192.0
```
### Flux w/ JSON Output
```yaml
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 }}"
```
```javascript
[
{
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](LICENSE)