Skip to content

Commit

Permalink
Debug logs are added.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevzatcirak committed Sep 14, 2023
1 parent 8f219fb commit 5ea747d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/PortainerService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import axios, {AxiosInstance, InternalAxiosRequestConfig} from 'axios';
import * as core from '@actions/core';
import {CreateStackPayload, DeleteStackPayload, PortainerStack, Stack, UpdateStackPayload} from "./types";

export class PortainerService {
Expand Down Expand Up @@ -60,13 +61,14 @@ export class PortainerService {
*/
async getStacks(environmentId: number): Promise<Stack[]> {
const swarmId = await this.getSwarmId(environmentId);
core.info("SwarmID=" + swarmId)
const {data}: { data: PortainerStack[] } = await this.client.get(
'/stacks',
{
params: {
filters: {
filters: JSON.stringify({
SwarmID: swarmId
}
})
}
});

Expand Down

0 comments on commit 5ea747d

Please sign in to comment.