Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
trueberryless committed Nov 19, 2024
1 parent 406f70b commit 62c864c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 62c864c

Please sign in to comment.