Pin dagger CLI to v0.2 (#81)

Since we published https://github.com/dagger/dagger/releases/tag/v0.3.6
(Nov. 30, 2022), this action started downloading that version (i.e.
`latest`), which resulted in breakage, as described in the issue that
this fixes.

As soon as all tests pass and this gets the OK + merge, we should:
1. Cut a new release for this action (I am thinking v3.2.0)
2. Update the v3 tag to point to this new version

That should fix this for all existing GitHub Actions users without any
intervention on their part.

Fixes https://github.com/dagger/dagger-for-github/issues/80

Signed-off-by: Gerhard Lazu <gerhard@dagger.io>
This commit is contained in:
Gerhard Lazu 2022-12-06 19:39:50 +00:00 committed by GitHub
parent 23fd2f48d1
commit 75549c92b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 13 deletions

View file

@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
version:
- latest
- 0.2
- 0.2.5
steps:
-
@ -56,7 +56,7 @@ jobs:
fail-fast: false
matrix:
version:
- latest
- 0.2
- 0.2.5
steps:
-

View file

@ -87,13 +87,13 @@ Following inputs can be used as `step.with` keys
> do test
> ```
| Name | Type | Default | Description |
|------------------|--------|--------------|----------------------------------------------------------------------------------------|
| `version` | String | `latest` | Dagger version (e.g., `v0.2.7`, `latest`, `https://github.com/dagger/dagger.git#main`) |
| `cmds` | List | | List of Dagger commands |
| `workdir` | String | `.` | Working directory (below repository root) |
| `install-only` | Bool | `false` | Just install Dagger |
| `cleanup` | Bool | `true` | Cleanup Dagger home folder at the end of a job |
| Name | Type | Default | Description |
|----------------|--------|---------|----------------------------------------------------------------------------------------|
| `version` | String | `0.2` | Dagger version (e.g., `0.2.36`, `latest`, `https://github.com/dagger/dagger.git#main`) |
| `cmds` | List | | List of Dagger commands |
| `workdir` | String | `.` | Working directory (below repository root) |
| `install-only` | Bool | `false` | Just install Dagger |
| `cleanup` | Bool | `true` | Cleanup Dagger home folder at the end of a job |
## Development

View file

@ -8,7 +8,7 @@ branding:
inputs:
version:
description: 'Dagger version'
default: 'latest'
default: '0.2'
required: false
args:
description: 'Arguments to pass to Dagger'

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -23,7 +23,7 @@ export interface Inputs {
export async function getInputs(): Promise<Inputs> {
return {
version: core.getInput('version') || 'latest',
version: core.getInput('version') || '0.2',
workdir: core.getInput('workdir') || '.',
args: core.getInput('args'),
installOnly: core.getBooleanInput('install-only'),