Skip to content

Commit

Permalink
Update deploy-clojars.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
klauswuestefeld authored Jun 7, 2024
1 parent 7b195c9 commit 25d7210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-clojars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
if grep -q SNAPSHOT $dir/project.clj; then
echo "SNAPSHOT version in $dir, skipping deployment"
else
echo "Deploying $dir"
echo "Changes detected in $dir and no SNAPSHOT version"
changed_libs+=($dir)
fi
fi
done
echo "changed_libs=${changed_libs[@]}" >> $GITHUB_ENV
- name: Deploy changed libs
if: env.changed_libs != ""
if: ${{ env.changed_libs != '' }}
run: |
IFS=' ' read -r -a libs <<< "$changed_libs"
IFS=' ' read -r -a libs <<< "${{ env.changed_libs }}"
for lib in "${libs[@]}"; do
cd $lib
lein deploy clojars
Expand Down

0 comments on commit 25d7210

Please sign in to comment.