mirror of
https://github.com/dagger/dagger-for-github.git
synced 2025-12-31 20:59:43 +11:00
feat: allow specifying nightly builds (#151)
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
parent
6b6e9832f7
commit
49dd901156
2 changed files with 8 additions and 1 deletions
|
|
@ -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 | '.' |
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue