Skip to content

Commit

Permalink
fix ci depends on bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liujinye-sys committed Jan 9, 2025
1 parent 8bb231b commit 744fadd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
CI:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Get Repo Name
run: |
Expand All @@ -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 Expand Up @@ -91,7 +95,7 @@ jobs:
sudo docker system prune -af
sudo -E apt-get -y purge azure-cli* docker* ghc* zulu* hhvm* llvm* firefox* google* dotnet* aspnetcore* powershell* openjdk* adoptopenjdk* mysql* php* mongodb* moby* snap* || true
sudo -E apt-get -qq update
sudo -E apt-get -qq install libfuse-dev $(curl -fsSL git.io/depends-ubuntu-2204)
sudo -E apt-get -qq install libfuse-dev #$(curl -fsSL git.io/depends-ubuntu-2204)
sudo -E apt-get -qq autoremove --purge
sudo -E apt-get -qq clean
df -h
Expand Down

0 comments on commit 744fadd

Please sign in to comment.