10000 Merge pull request #50 from IBM/add-latest-codeanalyzer · codellm-devkit/python-sdk@9a980df · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a980df

Browse files
authored
Merge pull request #50 from IBM/add-latest-codeanalyzer
Inject latest codeanalyzer.jar
2 parents 9976831 + 2bd4752 commit 9a980df

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ permissions:
1111
env:
1212
PYPI_USERNAME: __token__
1313
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
14-
CODE_ANALYZER_VERSION: "20240923T182840"
1514

1615
jobs:
1716
publish:
18-
name: Publish
17+
name: Publish to PyPi
1918
runs-on: ubuntu-latest
2019

2120
steps:
@@ -32,14 +31,16 @@ jobs:
3231
curl -sSL https://install.python-poetry.org | python - -y
3332
echo "$HOME/.local/bin" >> $GITHUB_PATH
3433
35-
- name: Install package dependencies
34+
- name: Install Python package dependencies
3635
run: |
3736
poetry config virtualenvs.create false
3837
poetry install --sync --no-interaction
3938
40-
- name: Get Code Analyzer
39+
- name: Inject the latest Code Analyzer JAR
4140
run: |
42-
wget -q https://github.com/IBM/codenet-minerva-code-analyzer/releases/download/$CODE_ANALYZER_VERSION/codeanalyzer.jar
41+
CODE_ANALYZER_URL=$(curl -s https://api.github.com/repos/IBM/codenet-minerva-code-analyzer/releases/latest | jq -r '.assets[] | .browser_download_url')
42+
echo "Downloading: " $CODE_ANALYZER_URL
43+
wget -q $CODE_ANALYZER_URL
4344
echo "Moving codeanalyzer.jar to:" ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/codeanalyzer.jar
4445
mv codeanalyzer.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/codeanalyzer.jar
4546

0 commit comments

Comments
 (0)
0