File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,15 @@ jobs:
1010 check_linear_in_pr_body :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Get pull request info
14- id : pr-info
13+ - name : Check for "linear" in the pull request body
1514 run : |
16- # Fetch the pull request body using GitHub's API
1715 pr_body=$(curl -s \
1816 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
1917 https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.number }} | jq -r .body)
2018
2119 echo "Pull Request Body: $pr_body"
22- echo "::set-output name=body::$pr_body"
2320
24- - name : Check for "linear" in the pull request body
25- run : |
26- if echo "${{ steps.pr-info.outputs.body }}" | grep -iq "linear"; then
21+ if echo "$pr_body" | grep -iq "linear"; then
2722 echo "'linear' found in the pull request body."
2823 else
2924 echo "'linear' not found in the pull request body."
You can’t perform that action at this time.
0 commit comments