Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,3 @@ jobs:
- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 2000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 27 additions & 1 deletion 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.

4 changes: 4 additions & 0 deletions src/extensionstore.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as core from '@actions/core'

type Platform = 'Windows' | 'Linux' | 'macOS'
type Architecture = 'x86_64' | 'arm64'

Expand Down Expand Up @@ -169,6 +171,7 @@ async function request(
data?: string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any> {
core.debug(`Requesting ${url}, method: ${type}, data: ${data}`)
const response = await fetch(url, {
method: type,
headers: {
Expand All @@ -191,6 +194,7 @@ export async function createOrUpdateExtension(
apiUrl: string,
apiToken: string
): Promise<void> {
core.debug(`Creating or updating extension ${pluginMetaData.Name}`)
const search = await request(
'GET',
`${apiUrl}api/v1/admin/extensions?search=${pluginMetaData.Name}`,
Expand Down