File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ permissions:
11
11
env :
12
12
PYPI_USERNAME : __token__
13
13
PYPI_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
14
- CODE_ANALYZER_VERSION : " 20240923T182840"
15
14
16
15
jobs :
17
16
publish :
18
- name : Publish
17
+ name : Publish to PyPi
19
18
runs-on : ubuntu-latest
20
19
21
20
steps :
@@ -32,14 +31,16 @@ jobs:
32
31
curl -sSL https://install.python-poetry.org | python - -y
33
32
echo "$HOME/.local/bin" >> $GITHUB_PATH
34
33
35
- - name : Install package dependencies
34
+ - name : Install Python package dependencies
36
35
run : |
37
36
poetry config virtualenvs.create false
38
37
poetry install --sync --no-interaction
39
38
40
- - name : Get Code Analyzer
39
+ - name : Inject the latest Code Analyzer JAR
41
40
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
43
44
echo "Moving codeanalyzer.jar to:" ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/codeanalyzer.jar
44
45
mv codeanalyzer.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/codeanalyzer.jar
45
46
You can’t perform that action at this time.
0 commit comments