Skip to content

Commit

Permalink
Merge pull request #61 from digitalocean/asb/fallback-version
Browse files Browse the repository at this point in the history
Bump fallback version to most recent release.
  • Loading branch information
andrewsomething committed Apr 29, 2022
2 parents 29d32f0 + af585f5 commit 4162480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -5361,7 +5361,7 @@ const tc = __webpack_require__(533);
const { Octokit } = __webpack_require__(889);

const baseDownloadURL = "https://github.com/digitalocean/doctl/releases/download"
const fallbackVersion = "1.42.0"
const fallbackVersion = "1.73.1"
const octokit = new Octokit();

async function downloadDoctl(version) {
Expand All @@ -5378,7 +5378,7 @@ async function downloadDoctl(version) {
}

async function run() {
try {
try {
var version = core.getInput('version');
if ((!version) || (version.toLowerCase() === 'latest')) {
version = await octokit.repos.getLatestRelease({
Expand Down
4 changes: 2 additions & 2 deletions main.js
Expand Up @@ -4,7 +4,7 @@ const tc = require('@actions/tool-cache');
const { Octokit } = require("@octokit/rest");

const baseDownloadURL = "https://github.com/digitalocean/doctl/releases/download"
const fallbackVersion = "1.42.0"
const fallbackVersion = "1.73.1"
const octokit = new Octokit();

async function downloadDoctl(version) {
Expand All @@ -21,7 +21,7 @@ async function downloadDoctl(version) {
}

async function run() {
try {
try {
var version = core.getInput('version');
if ((!version) || (version.toLowerCase() === 'latest')) {
version = await octokit.repos.getLatestRelease({
Expand Down

0 comments on commit 4162480

Please sign in to comment.