Skip to content

Commit

Permalink
Use spaces to separate branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro committed Aug 8, 2024
1 parent 39bd360 commit 6c54fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
git config --global user.email "$MY_EMAIL"
git config --global user.name "$MY_NAME"
echo "Finding all branches"
BRANCHES=$(git branch --format='%(refname:short)' -r | grep -v 'origin/HEAD' | sed 's/origin\///')
BRANCHES=$(git branch --format='%(refname:short)' -r | grep -v 'origin/HEAD' | sed 's/origin\///' | xargs)
echo "We will sync the following files: \"$FILES_TO_SYNC\" from ${{ github.ref }} to all other branches being: \"$BRANCHES\""
for branch in $(git branch --format='%(refname)'); do
echo "Checking out $branch"
Expand Down

0 comments on commit 6c54fd2

Please sign in to comment.