From 9f0698fd52919e116dff04ec2b8f8ce60011a039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 7 Nov 2022 13:19:37 +0100 Subject: [PATCH] use `master` by default, fix #24 --- README.md | 9 ++------- action.yml | 2 +- dist/index.js | 2 +- index.js | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b8f42eb..4fd51a5 100644 --- a/README.md +++ b/README.md @@ -31,15 +31,10 @@ Optionally set a Zig version: ```yaml - uses: goto-bus-stop/setup-zig@v1 with: - version: 0.7.0 # The default is 0.5.0 + version: 0.7.0 ``` -To use the nightly builds, set: -```yaml -- uses: goto-bus-stop/setup-zig@v1 - with: - version: master -``` +The default is to use the nightly `master` builds. Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax: ```yaml diff --git a/action.yml b/action.yml index 9be2a2b..0fa2e9e 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: version: description: 'Version of the zig compiler to use (must be 0.3.0 or up)' required: true - default: '0.5.0' + default: 'master' runs: using: 'node16' main: 'dist/index.js' diff --git a/dist/index.js b/dist/index.js index 6a8a5fc..1752bb0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10964,7 +10964,7 @@ async function downloadZig (platform, version) { } async function main () { - const version = actions.getInput('version') || '0.5.0' + const version = actions.getInput('version') || 'master' if (semver.valid(version) && semver.lt(version, '0.3.0')) { actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0') return diff --git a/index.js b/index.js index b1753a2..74cecac 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ async function downloadZig (platform, version) { } async function main () { - const version = actions.getInput('version') || '0.5.0' + const version = actions.getInput('version') || 'master' if (semver.valid(version) && semver.lt(version, '0.3.0')) { actions.setFailed('This action does not work with Zig 0.1.0 and Zig 0.2.0') return