Skip to content

Commit

Permalink
ubuntu24.04 ci pipeline fix
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Nov 22, 2024
1 parent 07d76dd commit bd7f790
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,24 @@ jobs:
echo "Listing all artifacts..."
gh api -X GET /repos/${{ github.repository }}/actions/artifacts --jq '.artifacts[] | .name'
echo "SHIVA1"
gh api -X GET /repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts --jq '.artifacts[].name'
echo "SHIVA2"
echo "SHIVA"
# Fetch the latest artifact name that matches the pattern
last_artifact=$(gh api -X GET /repos/${GITHUB_REPOSITORY}/actions/artifacts --jq \
'.artifacts[] | select(.name | startswith("kernel-version-${DRIVER_BRANCH}") and endswith("$DIST")) | .name' | tail -n 1)
# Download the artifact
if [[ -n "$last_artifact" ]]; then
echo "== Downloading artifact: $last_artifact"
gh run download --name "$last_artifact" --dir ./artifacts/
else
echo "No matching artifacts found."
fi
DRIVER_BRANCH="550"
# Define variables for artifact pattern
PREFIX="kernel-version-${DRIVER_BRANCH}-${LTS_KERNEL}"
Expand Down

0 comments on commit bd7f790

Please sign in to comment.