Skip to content

Commit

Permalink
try to get all changes from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 24, 2024
1 parent fda1885 commit 7102292
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ jobs:
run: dotnet restore

- name: Get all changed files
id: changedFiles
id: changed-files
run: |
echo "CHANGED_FILES=$(git diff --name-only origin/master...$GITHUB_SHA)" >> $GITHUB_OUTPUT
git fetch origin master
BASE_SHA=$(git merge-base origin/master $GITHUB_SHA)
CHANGED_FILES=$(git diff --name-only $BASE_SHA $GITHUB_SHA)
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changedFiles.outputs.current_commit }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.current_commit }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
Expand Down

0 comments on commit 7102292

Please sign in to comment.