Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
selenehyun committed Mar 6, 2020
1 parent aa95e71 commit 8148af8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
name: 'GitHub Push'
description: 'The desired files can be Repository Commit to Push.'
inputs:
repository-name:
description: 'Repository name'
required: true
outputs:
test:
description: 'test'
runs:
using: 'docker'
image: 'Dockerfile'
11 changes: 7 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ cd /$REPO_FULLNAME
git config --global user.email "[email protected]"
git config --global user.name "GitHub Push Action"

# check commit exists
git add $COMMIT_FILES
git commit -m "GitHub Push"
git push origin $BRANCH
if [ -z "$(git status --porcelain)" ]; then
echo "Clean!"
else
git add $COMMIT_FILES
git commit -m "GitHub Push"
git push origin $BRANCH
fi

0 comments on commit 8148af8

Please sign in to comment.