From 230cd0745528b6edd310837a534e951f6d3c92cf Mon Sep 17 00:00:00 2001 From: davidmirror-ops Date: Tue, 31 Oct 2023 05:37:52 -0500 Subject: [PATCH 1/2] Update example and node version Signed-off-by: davidmirror-ops --- README.md | 26 ++++++++++++++------------ action.yml | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d9f1c5c..0589c79 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 + ``` diff --git a/action.yml b/action.yml index b300ed1..3152263 100644 --- a/action.yml +++ b/action.yml @@ -7,5 +7,5 @@ inputs: required: false default: 'latest' runs: - using: 'node12' + using: 'node16' main: './dist/main.js' From 5cee1f99fe6939c610810dbf4c0cc54bf92ca0f2 Mon Sep 17 00:00:00 2001 From: davidmirror-ops Date: Wed, 1 Nov 2023 05:14:20 -0500 Subject: [PATCH 2/2] Bump node and action versions Signed-off-by: davidmirror-ops --- Makefile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bfb0073..06b319a 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,5 @@ build: '--define:process.env.NODE_ENV="production"' \ --outdir=dist \ --platform=node \ - --target=node12 \ + --target=node16 \ ./src/main.ts \ No newline at end of file diff --git a/package.json b/package.json index 1f9ec61..e8197b8 100644 --- a/package.json +++ b/package.json @@ -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": {