From 272b7387124f434844358194964a89ad13a4f3ad Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Sun, 8 Sep 2024 18:29:59 +0200 Subject: [PATCH] Fix output config (#13) --- .github/workflows/build-push-release.yml | 2 ++ src/action.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-push-release.yml b/.github/workflows/build-push-release.yml index dd94e68..f817fe1 100644 --- a/.github/workflows/build-push-release.yml +++ b/.github/workflows/build-push-release.yml @@ -67,6 +67,8 @@ jobs: git push origin $BRANCH_NAME gh pr create --title "Automated build: Update version to ${{ steps.gitversion.outputs.semVer }}" --body "This PR updates the version to ${{ steps.gitversion.outputs.semVer }} and rebuilds the dist folder." --base main --head $BRANCH_NAME ) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Create a release if on a release branch - name: Create Release diff --git a/src/action.ts b/src/action.ts index 6ecd833..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:', config); + console.log('Config loaded:', JSON.stringify(config, null, 2)); core.debug(`Loaded config: ${JSON.stringify(config)}`); const time = (new Date()).toTimeString();