Skip to content

Commit 0426d75

Browse files
committed
Remove step'
1 parent 562e9ab commit 0426d75

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/linear.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)