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();