Skip to content

Commit da63e3c

Browse files
authored
Merge pull request #3 from Maddimax/releases/v2
Add debug output
2 parents 37c70f5 + c647e62 commit da63e3c

File tree

5 files changed

+33
-22
lines changed

5 files changed

+33
-22
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,3 @@ jobs:
4343
- name: Test
4444
id: npm-ci-test
4545
run: npm run ci-test
46-
47-
test-action:
48-
name: GitHub Actions Test
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- name: Checkout
53-
id: checkout
54-
uses: actions/checkout@v4
55-
56-
- name: Test Local Action
57-
id: test-action
58-
uses: ./
59-
with:
60-
milliseconds: 2000
61-
62-
- name: Print Output
63-
id: output
64-
run: echo "${{ steps.test-action.outputs.time }}"

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extensionstore.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as core from '@actions/core'
2+
13
type Platform = 'Windows' | 'Linux' | 'macOS'
24
type Architecture = 'x86_64' | 'arm64'
35

@@ -169,6 +171,7 @@ async function request(
169171
data?: string
170172
// eslint-disable-next-line @typescript-eslint/no-explicit-any
171173
): Promise<any> {
174+
core.debug(`Requesting ${url}, method: ${type}, data: ${data}`)
172175
const response = await fetch(url, {
173176
method: type,
174177
headers: {
@@ -191,6 +194,7 @@ export async function createOrUpdateExtension(
191194
apiUrl: string,
192195
apiToken: string
193196
): Promise<void> {
197+
core.debug(`Creating or updating extension ${pluginMetaData.Name}`)
194198
const search = await request(
195199
'GET',
196200
`${apiUrl}api/v1/admin/extensions?search=${pluginMetaData.Name}`,

0 commit comments

Comments
 (0)