Skip to content

Commit

Permalink
Fix for ORT sweeper: Ensure multiple release-* branches are parsed co…
Browse files Browse the repository at this point in the history
…rrectly by removing newlines between branch names.

Signed-off-by: ikolomi <[email protected]>
  • Loading branch information
ikolomi committed Nov 26, 2024
1 parent 2c8f9e0 commit 8ac276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ort-sweeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: get-branches
run: |
# Get all branches matching 'release-*' and include 'main'
branches=$(git ls-remote --heads origin | awk -F'/' '/refs\/heads\/release-/ {print $NF}')
branches=$(git ls-remote --heads origin | awk -F'/' '/refs\/heads\/release-/ {printf $NF" "}')
branches="main $branches"
echo "::set-output name=branches::$branches"
env:
Expand Down

0 comments on commit 8ac276c

Please sign in to comment.