From cfcf4c5f6de690e4a8814bd8976f645343951a32 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Sun, 8 Sep 2024 17:56:42 +0000 Subject: [PATCH] Fix release pipeline --- .github/workflows/build-push-release.yml | 6 +++--- src/action.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index b6663f2..93df26c 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -52,10 +52,10 @@ jobs: id: check_dist_changes run: | git add dist - if git diff --cached --quiet; then - echo "dist_changed=false" >> "$GITHUB_OUTPUT" - else + if [ -n "$(git diff --name-only --staged)" ]; then echo "dist_changed=true" >> "$GITHUB_OUTPUT" + else + echo "dist_changed=false" >> "$GITHUB_OUTPUT" fi # Update the version in package.json if dist has changed diff --git a/src/action.ts b/src/action.ts index 07a2095..8c63078 100644 --- a/src/action.ts +++ b/src/action.ts @@ -14,7 +14,7 @@ export async function run() { // Load the configuration const workspacePath = process.env.GITHUB_WORKSPACE || ''; const config = loadConfig(workspacePath); - console.log('Config loaded: ', JSON.stringify(config, null, 2)); + console.log('Config loaded:', JSON.stringify(config, null, 2)); core.debug(`Loaded config: ${JSON.stringify(config)}`); const time = (new Date()).toTimeString();