mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 03:28:05 +00:00
chore: Add check for CODACY_PROJECT_TOKEN before upload to Codacy
This commit is contained in:
@@ -227,6 +227,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
if [ -z "$CODACY_PROJECT_TOKEN" ]; then
|
||||||
|
echo "CODACY_PROJECT_TOKEN is not set. Skipping upload."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Download the reporter script
|
# Download the reporter script
|
||||||
curl -Ls https://coverage.codacy.com/get.sh -o codacy.sh
|
curl -Ls https://coverage.codacy.com/get.sh -o codacy.sh
|
||||||
chmod +x codacy.sh
|
chmod +x codacy.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user