Skip to content

Commit

Permalink
fix array?
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
trueberryless committed Nov 22, 2024
1 parent a0c383f commit 1861b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Read Repositories from JSON
id: set-matrix
run: |
repos=$(jq -c '.repositories[] | {name: .name, files: .files}' repos.json | jq -s .)
repos=$(jq -c '.repositories[] | {name: .name, files: .files[]}' repos.json | jq -s .)
echo "repo-matrix=${repos}" >> $GITHUB_ENV
sync-workflows:
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
git checkout -b "$branch_name" || git checkout "$branch_name"
# Sync specified workflow files
for file_config in $(echo "$files" | jq -c '.[]'); do
for file_config in $(echo "$files" | jq -c '.'); do
src_file=$(echo "$file_config" | jq -r '.path')
dest_file=$(echo "$file_config" | jq -r '.targetPath')
Expand Down

0 comments on commit 1861b66

Please sign in to comment.