From 62c864c6730b595004582b934ed5784f8b90168a Mon Sep 17 00:00:00 2001 From: trueberryless Date: Tue, 19 Nov 2024 12:49:41 +0100 Subject: [PATCH] try fix deploy --- .github/workflows/sync.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml index dfd3357..7dc7e67 100644 --- a/.github/workflows/sync.yaml +++ b/.github/workflows/sync.yaml @@ -44,7 +44,15 @@ jobs: sync-workflows: runs-on: ubuntu-latest needs: changesets - if: (needs.changesets.outputs.hasChangesets == 'false' && (contains(github.event.head_commit.message, 'deploy') || contains(github.event.head_commit.message, '[ci] release'))) || github.event_name == 'workflow_dispatch' + if: > + ( + needs.changesets.outputs.hasChangesets == 'false' && + ( + contains(github.event.head_commit.message, 'deploy') || + contains(github.event.head_commit.message, '[ci] release') + ) + ) || + github.event_name == 'workflow_dispatch' steps: # Step 1: Checkout current repository - name: Checkout current repository @@ -99,7 +107,8 @@ jobs: # Merge global defaults with file-specific props file_props=$(echo "$file_config" | jq -c '.props // {}') - merged_props=$(jq -c --argjson defaults "$global_defaults" --argjson fileProps "$file_props" '.defaults * .fileProps' <<<"{\"defaults\": $global_defaults, \"fileProps\": $file_props}") + merged_props=$(jq -c --argjson defaults "$global_defaults" --argjson fileProps "$file_props" \ + '.defaults * .fileProps' <<<"{\"defaults\": $global_defaults, \"fileProps\": $file_props}") # Handle dynamic content replacement temp_file=$(mktemp)