Skip to content

Commit

Permalink
Limit find to current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pcallewaert committed Mar 14, 2022
1 parent 75c9bd2 commit a98cb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ echo ":github: Bearer ${GITHUB_TOKEN}" >> ~/.gem/credentials
cd "${WORKING_DIRECTORY:-.}"

echo "Building the gem"
find . -name '*.gemspec' -exec gem build {} \;
find . -name '*.gemspec' -maxdepth 1 -exec gem build {} \;
echo "Pushing the built gem to GitHub Package Registry"
find . -name '*.gem' -exec gem push --key github --host "https://rubygems.pkg.github.com/${OWNER}" {} \;
find . -name '*.gem' -maxdepth 1 -exec gem push --key github --host "https://rubygems.pkg.github.com/${OWNER}" {} \;

0 comments on commit a98cb95

Please sign in to comment.