Skip to content

Commit

Permalink
Updated entry point script (#10)
Browse files Browse the repository at this point in the history
* Updated entrypoint script
  • Loading branch information
ryan-rozario authored Apr 23, 2023
1 parent b3de408 commit 8171f66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:latest
FROM alpine:3.17

COPY LICENSE README.md entrypoint.sh /

Expand Down
9 changes: 6 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pipreqs --force --savepath $INPUT_REQUIREMENT_PATH $INPUT_PROJECT_PATH
set -e
sh -c "ls"

sh -c "git config --global user.name '${GITHUB_ACTOR}' \
&& git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'"
echo `git add -A && git commit -m "Updated $INPUT_PROJECT_NAME requirements file" && git push -u origin HEAD`
git config --global --add safe.directory /github/workspace
git config --global user.name '${GITHUB_ACTOR}'
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git add -A
git commit -m "Updated $INPUT_PROJECT_NAME requirements file"
git push -u origin HEAD

0 comments on commit 8171f66

Please sign in to comment.