Skip to content

Commit

Permalink
get changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 24, 2024
1 parent 5606818 commit fda1885
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,14 @@ jobs:
- name: Run dotnet restore
run: dotnet restore

- name: Dependencies update check
id: dependencies
- name: Get all changed files
id: changedFiles
run: |
current_commit=`git log -n 1 --pretty=format:%H`
echo $current_commit
last_deps_mod_commit=`git log -n 1 --pretty=format:%H -- composer.json`
echo $last_deps_mod_commit
if [ $current_commit == $last_deps_mod_commit ]; then echo USE_LOCK=0 > ci.conf; else echo USE_LOCK=1 > ci.conf; fi
echo "CHANGED_FILES=$(git diff --name-only origin/master...$GITHUB_SHA)" >> $GITHUB_OUTPUT
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.dependencies.outputs.current_commit }}
ALL_CHANGED_FILES: ${{ steps.changedFiles.outputs.current_commit }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
Expand Down
4 changes: 0 additions & 4 deletions Snowflake.Data/Core/LinterTestFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,4 @@ public void something()
PRIVATEVSAR = 2;
}
}
public interface badInterface
{
void methodwithnocaps();
}
}
2 changes: 1 addition & 1 deletion Snowflake.Data/Core/badInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public interface badInterface
void methodwithnocaps();

void
reallyunnecessarylkongandaijhafkjdhafkjlahsdkjgfhasdjkghkjasdfghkjadshgkjdshgkjasdhgkjdsdhjkhdhhjadhjkfhdkjafhkjdshfkjasdhfkjasdhfkdhafahskljf(int);
reallyunnecessarylkongandaijhafkjdhafkjlahsdkjgfhasdjkghkjasdfghkjadshgkjdshgkjasdhgkjdsdhjkhdhhjadhjkfhdkjafhkjdshfkjasdhfkjasdhfkdhafahskljf(int algo);
}
}

0 comments on commit fda1885

Please sign in to comment.