Skip to content

Commit

Permalink
update logic for geeting nodes for new gpml
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushi-agrawal-gladstone authored Oct 2, 2024
1 parent 325d467 commit de1e938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/1_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ jobs:
if [ "$status" = "New" ]; then
# For new GPML files, treat all nodes as added nodes
added_nodes=$(grep '<DataNode' "$GPML_FILE" | sed 's/^+//')
added_nodes=$(echo "$diff_output" | grep "^+" | grep '<DataNode' | sed 's/^+//')
num_added_nodes=$(echo "$added_nodes" | sed '/^$/d' | wc -l)
# Output the results for a new GPML file
Expand All @@ -892,8 +892,8 @@ jobs:
# Set the environment variables for new GPML files
echo "note_test_nodes=All nodes are new, as this is a new GPML file." >> $GITHUB_ENV
echo "status_test_nodes=PASS" >> $GITHUB_ENV
echo "color_test_nodes=green" >> $GITHUB_ENV
echo "status_test_nodes==REVIEW REQUIRED" >> $GITHUB_ENV
echo "color_test_nodes=red" >> $GITHUB_ENV
else
# For modified GPML files, proceed with checking deleted, added, and modified nodes
Expand Down

0 comments on commit de1e938

Please sign in to comment.