Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 24, 2024
1 parent 40149b8 commit cfdf1bd
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,30 @@ jobs:
- name: Run dotnet restore
run: dotnet restore

- name: base SHA
id: base-sha
run: |
echo "baseSHA=git merge-base origin/master" >> $GITHUB_OUTPUT
- name: Get all changed files
id: changed-files
env:
BASE_SHA: ${{ steps.base-sha.outputs.baseSHA }}
run: |
echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
echo "changed_files=git diff --name-only $BASE_SHA $GITHUB_SHA" >> $GITHUB_OUTPUT
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
run: |
for (file in ${ALL_CHANGED_FILES}){
echo "$file was changed"
}
echo "$ALL_CHANGED_FILES"
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
run: |
for (file in ${ALL_CHANGED_FILES}){
echo "$file was changed"
}
- name: Run dotnet format on changed files
run: |
Expand Down

0 comments on commit cfdf1bd

Please sign in to comment.