Skip to content

Commit

Permalink
fix ci get depends-on error
Browse files Browse the repository at this point in the history
  • Loading branch information
liujinye-sys committed Jan 9, 2025
1 parent 5f0f4e7 commit 92be853
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
run: |
set -x
# 获取当前 PR 的描述
DEPENDS_ON=$(echo "${{ github.event.pull_request.body }}" | grep -oP 'depends-on:\K(.*)' | sed 's/^ *//;s/ *$//')
cat > pull_request.body.txt <<EOF
${{ github.event.pull_request.body }}
EOF
cat pull_request.body.txt
DEPENDS_ON=$(grep -oP 'depends-on:\K(.*)' pull_request.body.txt | sed 's/^ *//;s/ *$//')
echo "PR DEPENDS_ON: $DEPENDS_ON"
ALL_PR="$DEPENDS_ON ${{ github.repository }}:${{ github.event.pull_request.number }}"
manifest_part=$(echo "$ALL_PR" | grep -o 'open-vela/manifests[^ ]*') || true
Expand Down

0 comments on commit 92be853

Please sign in to comment.