Skip to content

Commit 32208f7

Browse files
committed
fix: streamline PR title retrieval in scope check workflow
This commit simplifies the PR title retrieval process in the GitHub Actions workflow by: - Removing unnecessary debug output for `GITHUB_EVENT_PATH` and `jq` command results. - Directly capturing and echoing the PR title, enhancing clarity and reducing clutter in the workflow logs. These changes aim to improve the efficiency of the workflow while maintaining essential output for debugging.
1 parent a4c68f3 commit 32208f7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/check_pr_scope.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ jobs:
2020
- name: Get PR title
2121
id: pr_title
2222
run: |
23-
echo "==== GITHUB_EVENT_PATH ===="
24-
cat "$GITHUB_EVENT_PATH"
25-
echo "==== jq output ===="
26-
jq -r .pull_request.title "$GITHUB_EVENT_PATH"
27-
echo "title=$(jq -r .pull_request.title \"$GITHUB_EVENT_PATH\")" >> "$GITHUB_OUTPUT"
23+
title=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH")
24+
echo "$title"
25+
echo "title=$title" >> $GITHUB_OUTPUT
2826
2927
- name: Debug PR title output
3028
run: |

0 commit comments

Comments
 (0)