Skip to content

Commit

Permalink
Merge pull request #7 from tj-actions/remove-args
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack authored Aug 9, 2020
2 parents 66fe83f + f5f9770 commit 3f0a215
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ inputs:
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.token }}
- ${{ inputs.files }}
branding:
icon: check-square
color: white
8 changes: 3 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

set -e

FILES=$2

CHANGED_FILES=()

for path in ${FILES}
for path in ${INPUT_FILES}
do
echo "Checking for file changes: \"${path}\"..."
MODIFIED_FILE=$(git diff --diff-filter=ACM --name-only | grep -E "(${path})" || true)
Expand All @@ -17,8 +15,8 @@ done

if [[ -z ${CHANGED_FILES} ]]; then
echo "::set-output name=files_changed::false"
exit 0;
else
echo "::set-output name=files_changed::true"
exit 0;
fi

exit 0;

0 comments on commit 3f0a215

Please sign in to comment.