Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed May 25, 2022
2 parents 19e004a + c861acd commit b90dac4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.3.0](https://github.com/OctopusDeploy/install-octopus-cli-action/compare/v1.2.0...v1.3.0) (2022-05-25)


### Features

* reordered imports and updated info message ([63a0c2e](https://github.com/OctopusDeploy/install-octopus-cli-action/commit/63a0c2e4b1269e98cafb376394a3a3e35568ef6a))

## [1.2.0](https://github.com/OctopusDeploy/install-octopus-cli-action/compare/v1.1.10...v1.2.0) (2022-05-04)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To install the latest version (i.e. `*` or `latest`) of the Octopus CLI:

```yml
- name: Install Octopus CLI 🐙
uses: OctopusDeploy/install-octopus-cli-action@v1.2.0
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: '*'
```
Expand All @@ -28,7 +28,7 @@ To install a specific version of the Octopus CLI:
```yml
- name: Install Octopus CLI 🐙
uses: OctopusDeploy/install-octopus-cli-action@v1.2.0
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: 9.0.0
```
Expand All @@ -37,7 +37,7 @@ Here's an example of invoking the `list-deployments` command after installing th

```yml
- name: Install Octopus CLI 🐙
uses: OctopusDeploy/install-octopus-cli-action@v1.2.0
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: 9.0.0
- name: list-octopusdeploy-deployments
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@
"postbuild": "ncc build -o dist",
"test": "jest --passWithNoTests"
},
"version": "1.2.0"
"version": "1.3.0"
}
12 changes: 6 additions & 6 deletions src/octopus-cli.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as os from 'os'
import {promises as fs} from 'fs'
import {debug, info, setFailed} from '@actions/core'
import {HttpClient} from '@actions/http-client'
import {
cacheDir,
downloadTool,
extractTar,
extractZip
} from '@actions/tool-cache'
import {debug, info, setFailed} from '@actions/core'
import {HttpClient} from '@actions/http-client'
import {join, dirname} from 'path'
import {promises as fs} from 'fs'
import * as os from 'os'
import {dirname, join} from 'path'
import {v4} from 'uuid'
import {OctopusCLIVersionFetcher} from './octopusCLIVersionFetcher'

Expand Down Expand Up @@ -74,7 +74,7 @@ const getDownloadUrl = async (versionSpec: string): Promise<Endpoint> => {
version = new OctopusCLIVersionFetcher(
versionsResponse.versions
).getVersion(versionSpec)
info(`Latest version: ${version}`)
info(`Latest version available: ${version}`)
} catch (e: unknown) {
if (e instanceof Error) {
setFailed(e)
Expand Down

0 comments on commit b90dac4

Please sign in to comment.