Skip to content

Commit

Permalink
Merge pull request #4 from davidmirror-ops/master
Browse files Browse the repository at this point in the history
Update example and node version
  • Loading branch information
davidmirror-ops authored Nov 8, 2023
2 parents 752f9cb + 5cee1f9 commit a102f51
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ build:
'--define:process.env.NODE_ENV="production"' \
--outdir=dist \
--platform=node \
--target=node12 \
--target=node16 \
./src/main.ts
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flytectl-setup-action

This action sets up [flytectl](https://docs.flyte.org/projects/flytectl/en/stable/) for use in actions by:
This action sets up [flytectl](https://docs.flyte.org/projects/flytectl/en/stable/) for use in actions.

## Usage

Expand Down Expand Up @@ -33,15 +33,17 @@ steps:
## Getting started Example
```bash
steps:
- uses: actions/checkout@v2
- uses: unionai-oss/flytectl-setup-action@master
- name: Setup demo cluster
run: flytectl demo start
- name: Setup flytectl config
run: flytectl config init
- name: Register Core example
run: |
FLYTESNACKS_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flytectl/releases/latest" | jq -r .tag_name)
flytectl register files -p flytesnacks -d development --archive https://github.com/flyteorg/flytesnacks/releases/download/$FLYTESNACKS_VERSION/flytesnacks-core.tgz --version v1
name: flytectl-setup-action
on: [push]
jobs:
install-flytectl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: unionai-oss/flytectl-setup-action@master
- name: Setup demo cluster
run: flytectl demo start
- name: Setup flytectl config
run: flytectl config init

```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ inputs:
required: false
default: 'latest'
runs:
using: 'node12'
using: 'node16'
main: './dist/main.js'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flytectl-setup-action",
"version": "0.0.1",
"version": "0.0.2",
"description": "Install and setup flytectl for use in other actions ",
"main": "src/main.js",
"scripts": {
Expand Down

0 comments on commit a102f51

Please sign in to comment.