Skip to content

Commit

Permalink
Fix: Improve string extraction from .gitreview
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
  • Loading branch information
ModeSevenIndustrialSolutions committed Oct 16, 2024
1 parent 7cf208b commit c97329d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github2gerrit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
run: |
set -x
gerrit_server=$(grep -E "host" .gitreview | cut -d "=" -f2)
gerrit_server_port=$(grep -E "port" .gitreview | cut -d "=" -f2)
gerrit_server=$(grep -oP -m1 '(?<=host=).*' .gitreview)
gerrit_server_port=$(grep -oP -m1 '(?<=port=).*' .gitreview)
echo "GERRIT_SERVER=${gerrit_server}" >> "$GITHUB_ENV"
echo "GERRIT_SERVER_PORT=${gerrit_server_port}" >> "$GITHUB_ENV"
Expand Down

0 comments on commit c97329d

Please # to comment.