Skip to content
Snippets Groups Projects
Commit bad6c121 authored by Torben Gotowik's avatar Torben Gotowik
Browse files

only rebuild and deploy packages if something changed

parent 8f8205e5
No related branches found
No related tags found
No related merge requests found
Pipeline #60278 failed
......@@ -17,9 +17,17 @@ stages:
build-job:
stage: build
script:
# - |
# for file in $(find $CI_PROJECT_DIR -name "*.nuspec"); do
# choco pack "$file" --out="$CI_PROJECT_DIR/artifacts/"
# done
- |
for file in $(find $CI_PROJECT_DIR -name "*.nuspec"); do
choco pack "$file" --out="$CI_PROJECT_DIR/artifacts/"
if [[ $(git log -1 --format=%H -- "$file") != $(git log -1 --format=%H HEAD -- "$file") ]]; then
choco pack "$file" --out="$CI_PROJECT_DIR/artifacts/"
else
echo "No changes detected in $file. Skipping packaging."
fi
done
artifacts:
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment