feat: allow specifying nightly builds (#151)

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2024-10-22 16:36:27 +01:00 committed by GitHub
parent 6b6e9832f7
commit 49dd901156
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -36,6 +36,7 @@ By setting the version to `latest`, this action will install the latest version
| Key | Description | Required | Default | | Key | Description | Required | Default |
| -------------- | ----------------------------------------------------------- | -------- | ------------------ | | -------------- | ----------------------------------------------------------- | -------- | ------------------ |
| `version` | Dagger Version | false | '0.13.5' | | `version` | Dagger Version | false | '0.13.5' |
| `commit` | Dagger Dev Commit (overrides `version`) | false | '' |
| `dagger-flags` | Dagger CLI Flags | false | '--progress plain' | | `dagger-flags` | Dagger CLI Flags | false | '--progress plain' |
| `verb` | CLI verb (call, run, download, up, functions, shell, query) | false | 'call' | | `verb` | CLI verb (call, run, download, up, functions, shell, query) | false | 'call' |
| `workdir` | The working directory in which to run the Dagger CLI | false | '.' | | `workdir` | The working directory in which to run the Dagger CLI | false | '.' |

View file

@ -5,6 +5,10 @@ inputs:
description: "Dagger Version" description: "Dagger Version"
required: false required: false
default: "0.13.5" default: "0.13.5"
commit:
description: "Dagger Dev Commit"
required: false
default: ""
dagger-flags: dagger-flags:
description: "Dagger CLI Flags" description: "Dagger CLI Flags"
required: false required: false
@ -55,9 +59,11 @@ runs:
VERSION= VERSION=
fi fi
COMMIT=${{ inputs.commit }}
# The install.sh script creates path ${prefix_dir}/bin # The install.sh script creates path ${prefix_dir}/bin
curl -fsS https://dl.dagger.io/dagger/install.sh \ curl -fsS https://dl.dagger.io/dagger/install.sh \
| BIN_DIR=${prefix_dir}/bin DAGGER_VERSION=$VERSION sh | BIN_DIR=${prefix_dir}/bin DAGGER_VERSION="$VERSION" DAGGER_COMMIT="$COMMIT" sh
- shell: bash - shell: bash
env: env: