Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ertrzyiks committed Oct 27, 2023
1 parent 51ae29d commit f89cad7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,16 @@ jobs:
for filename in `git ls-files --modified | grep package.json`; do
cat "$filename" | jq -r '.name + "@" + .version'
done
echo "\n"
}
relevantPackages () {
listChangedPackages | grep $SHA
}
RELEVANT_PACKAGES=$(relevantPackages)
echo 'LIST<<EOF' >> $GITHUB_OUTPUT
listChangedPackages | grep $SHA >> $GITHUB_OUTPUT
[ -z "$RELEVANT_PACKAGES" ] && echo "" || echo "$RELEVANT_PACKAGES" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
echo "NUMBER_OF_PACKAGES=$(git ls-files --modified | grep package.json | wc -l)" >> $GITHUB_OUTPUT
env:
Expand Down

0 comments on commit f89cad7

Please sign in to comment.