Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into enable-login
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Aug 16, 2022
2 parents f45c477 + 9f263ee commit f19914f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ steps:
- uses: actions/checkout@v3
- uses: inngest/setup-inngest@v1
with:
version: 0.5.2
key: ${{ secrets.INNGEST_API_KEY }}
token: ${{ secrets.INNGEST_AUTH_TOKEN }}
```
The `version` input is optional. If not supplied, the `"latest"` version will be used.
An additional `version` input is optional. If not supplied, the `"latest"` version will be used. If supplied, it should be a semver version number such as `0.5.2`.

The `key` input is also optional. If supplied, we'll log in to the CLI for you (synonymous with using `inngest login --token [key]`). This is useful if you wish to perform authenticated commands with the CLI, like [deploying functions](https://github.com/inngest/action-deploy-functions) or [testing against production data](https://github.com/inngest/action-test-functions).
The `token` input is also optional. If supplied, we'll log in to the CLI for you (synonymous with using `inngest login --token`). This is useful if you wish to perform authenticated commands with the CLI, like [deploying functions](https://github.com/inngest/action-deploy-functions) or [testing against production data](https://github.com/inngest/action-test-functions).
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ inputs:
Example: "latest" or "1.5.2"
required: false
default: latest
key:
token:
description: |-
An API key which, if given, will be used to authenticate with the Inngest
CLI using `inngest login`.
An auth token which, if given, will be used to authenticate with the
Inngest CLI using `inngest login`.
required: false
default: ""

Expand All @@ -30,8 +30,8 @@ outputs:
value: ${{ steps.echo-version-bash.outputs.version || steps.echo-version-cmd.outputs.version }}

branding:
icon: terminal
color: blue
icon: more-horizontal
color: purple

runs:
using: composite
Expand All @@ -46,8 +46,8 @@ runs:
node-version: 16
- run: npm i -g inngest-cli@${{ inputs.version }}
shell: ${{ runner.os == 'Windows' && 'cmd' || 'bash' }}
- if: inputs.key != ''
run: inngest login --token ${{ inputs.key }}
- if: inputs.token != ''
run: inngest login --token ${{ inputs.token }}
shell: ${{ runner.os == 'Windows' && 'cmd' || 'bash' }}
- id: echo-version-cmd
if: runner.os == 'Windows'
Expand Down

0 comments on commit f19914f

Please sign in to comment.