From 6fa880703eb3d48b018f159f398cf5d462c16491 Mon Sep 17 00:00:00 2001 From: Gorkem Ercan Date: Sat, 30 Mar 2024 15:56:00 -0400 Subject: [PATCH] Add permissions and debug statement --- .github/workflows/check-action.yml | 5 +++-- src/main.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-action.yml b/.github/workflows/check-action.yml index d842226..b0eacaf 100644 --- a/.github/workflows/check-action.yml +++ b/.github/workflows/check-action.yml @@ -5,6 +5,7 @@ on: pull_request: schedule: - cron: '0 0 * * *' # every day at midnight +permissions: read-all jobs: latest-version: @@ -25,7 +26,7 @@ jobs: - name: Echo output of installer if: always() - run: echo "${{ steps.install_kit.outputs.installed }}" + run: echo "${{ steps.install_kit.outputs.kit_path }}" - name: Run kit tools shell: bash @@ -51,7 +52,7 @@ jobs: - name: Echo output of installer if: always() - run: echo "${{ steps.install_kit.outputs.installed }}" + run: echo "${{ steps.install_kit.outputs.kit_path }}" - name: Run installed tools shell: bash diff --git a/src/main.ts b/src/main.ts index 228a0d2..65578f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,6 +15,7 @@ export async function run(): Promise { core.getInput('token'), versionSpec === 'latest' ) + core.debug(`Found ${releases.length} releases`) let releaseToDownload = undefined if (releases.length === 1) {