Skip to content

Commit

Permalink
chore: updated client library
Browse files Browse the repository at this point in the history
Updated client library
  • Loading branch information
benPearce1 authored Jan 30, 2023
2 parents caa5e61 + d01eb1b commit 2ad8734
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ lib/**/*
octo
out
reports/

.idea
7 changes: 3 additions & 4 deletions __tests__/integration/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import {
ProjectRepository,
ReleaseRepository,
RunCondition,
RunConditionForAction,
ServerTaskDetails,
RunConditionForAction, ServerTask,
ServerTaskWaiter,
StartTrigger,
TagSet,
Expand Down Expand Up @@ -279,10 +278,10 @@ describe('integration tests', () => {
result.map(r => r.serverTaskId),
1000,
60000,
(serverTaskDetails: ServerTaskDetails): void => {
(serverTask: ServerTask): void => {
// eslint-disable-next-line no-console
console.log(
`Waiting for task ${serverTaskDetails.Task.Id}. Current status: ${serverTaskDetails.Task.State}, completed: ${serverTaskDetails.Progress.ProgressPercentage}%`
`Waiting for task ${serverTask.Id}. Current status: ${serverTask.State}`
)
}
)
Expand Down
74 changes: 37 additions & 37 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 @@ -5,7 +5,7 @@
},
"dependencies": {
"@actions/core": "^1.10.0",
"@octopusdeploy/api-client": "^2.1.4"
"@octopusdeploy/api-client": "^3.0.1"
},
"description": "GitHub Action to Create a Release in Octopus Deploy",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { createDeploymentFromInputs } from './api-wrapper'
const parameters = getInputParameters()

const config: ClientConfiguration = {
userAgentApp: 'GitHubActions deploy-release-tenanted-action',
userAgentApp: 'GitHubActions (release;deploy-tenanted;v3)',
instanceURL: parameters.server,
apiKey: parameters.apiKey,
logging: logger
Expand Down

0 comments on commit 2ad8734

Please sign in to comment.