Skip to content

Commit 1efed41

Browse files
Update GitHub Actions workflow to improve package validation process:
- Modify Docker run command to mount the package list file for better accessibility. - Ensure the package list is read from the correct path within the container. - Enhance error handling for missing packages during validation.
1 parent 7540124 commit 1efed41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fi
4141
4242
# Validate package names exist in Arch repos
43-
docker run --rm archlinux:latest bash -c "
43+
docker run --rm -v "${{ github.workspace }}/packages.x86_64:/packages.x86_64:ro" archlinux:latest bash -c "
4444
set -euo pipefail
4545
pacman -Syu --noconfirm
4646
while read -r pkg; do
@@ -50,7 +50,7 @@ jobs:
5050
echo \"::error::Package not found: \$pkg\"
5151
exit 1
5252
fi
53-
done < packages.x86_64
53+
done < /packages.x86_64
5454
"
5555
5656
security-scan:

0 commit comments

Comments
 (0)