Skip to content

Commit d805dfe

Browse files
committed
replace git command by find
refs: #18
1 parent 4ac9af2 commit d805dfe

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/sh -l
22

33
cd /github/workspace/
4-
res=$(git ls-files '*.yaml' '*.yml' '.yamllint')
5-
echo git-command result : $res
6-
yamlfixer $OPTIONS --nochange --diffto /tmp/changes.patch $(git ls-files '*.yaml' '*.yml' '.yamllint' | grep -v ^.github/workflows/) $YAML_FILE
7-
echo "yamlfixer $OPTIONS --nochange --diffto /tmp/changes.patch $(git ls-files '*.yaml' '*.yml' '.yamllint' | grep -v ^.github/workflows/) $YAML_FILE"
4+
yamlfixer $OPTIONS --nochange --diffto /tmp/changes.patch $(find . -type f -name "*.yml" -o -name "*.yaml" -o -name ".yamllint" | grep -v ^./.github/workflows/) $YAML_FILE
5+
echo "yamlfixer $OPTIONS --nochange --diffto /tmp/changes.patch $(find . -type f -name "*.yml" -o -name "*.yaml" -o -name ".yamllint" | grep -v ^./.github/workflows/) $YAML_FILE"
86

97
if [[ -s /tmp/changes.patch ]] ; then
108
echo "WARN: all input files didn't pass successfully yamllint strict mode." ;

0 commit comments

Comments
 (0)