Skip to content

Commit 8e66973

Browse files
committed
maybe fix CI checks?
1 parent ebd1bdc commit 8e66973

File tree

1 file changed

+1
-39
lines changed

1 file changed

+1
-39
lines changed

.github/workflows/compare_vendor_dependencies.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,4 @@ jobs:
1111
steps:
1212
- name: Checkout Robot Project Repo
1313
uses: actions/checkout@v4
14-
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: 3.x
19-
20-
- name: Extract pioneerslib Version from build.gradle
21-
id: extract_version
22-
run: |
23-
VERSION=$(grep -oP "com.github.FRC-7525:pioneerslib:\K[\d.]+" build.gradle | head -1)
24-
echo "pioneerslib_version=$VERSION" >> $GITHUB_ENV
25-
echo "Detected pioneerslib version: $VERSION"
26-
- name: Skip if pioneerslib version < 1.3.7
27-
run: |
28-
# Split version into parts
29-
IFS='.' read -r major minor patch <<< "${pioneerslib_version}"
30-
if (( major < 1 )) || (( major == 1 && minor < 3 )) || (( major == 1 && minor == 3 && patch < 7 )); then
31-
echo "Version $pioneerslib_version is less than 1.3.7, skipping vendordeps check."
32-
exit 0
33-
fi
34-
shell: bash
35-
36-
- name: Download pioneerslib Vendordeps Zip from GitHub Maven
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: |
40-
MAVEN_URL="https://maven.pkg.github.com/FRC-7525/pioneerslib/com/github/FRC-7525/pioneerslib/${{ env.pioneerslib_version }}/pioneerslib-${{ env.pioneerslib_version }}-vendordeps.zip"
41-
echo "Downloading vendordeps zip from $MAVEN_URL"
42-
curl -fLo pioneerslib-vendordeps.zip -u "FRC-7525:${GITHUB_TOKEN}" "$MAVEN_URL"
43-
mkdir pioneerslib_vendordeps
44-
unzip pioneerslib-vendordeps.zip -d pioneerslib_vendordeps
45-
46-
- name: List pioneerslib vendordeps extracted files
47-
run: ls -R pioneerslib_vendordeps
48-
49-
- name: Compare Vendordep Files
50-
run: |
51-
python3 "${{ github.workspace }}/.github/scripts/compare_vendordeps.py" ./vendordeps ./pioneerslib_vendordeps
52-
14+
# Removed rest bc no pioneer lib for demo

0 commit comments

Comments
 (0)