Skip to content

Commit 49dd901

Browse files
authored
feat: allow specifying nightly builds (#151)
Signed-off-by: Justin Chadwell <[email protected]>
1 parent 6b6e983 commit 49dd901

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

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

action.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: "Dagger Version"
66
required: false
77
default: "0.13.5"
8+
commit:
9+
description: "Dagger Dev Commit"
10+
required: false
11+
default: ""
812
dagger-flags:
913
description: "Dagger CLI Flags"
1014
required: false
@@ -55,9 +59,11 @@ runs:
5559
VERSION=
5660
fi
5761
62+
COMMIT=${{ inputs.commit }}
63+
5864
# The install.sh script creates path ${prefix_dir}/bin
5965
curl -fsS https://dl.dagger.io/dagger/install.sh \
60-
| BIN_DIR=${prefix_dir}/bin DAGGER_VERSION=$VERSION sh
66+
| BIN_DIR=${prefix_dir}/bin DAGGER_VERSION="$VERSION" DAGGER_COMMIT="$COMMIT" sh
6167
6268
- shell: bash
6369
env:

0 commit comments

Comments
 (0)