Skip to content

Commit

Permalink
ci: manual implementation of the diff action
Browse files Browse the repository at this point in the history
  • Loading branch information
necipallef committed Sep 25, 2024
1 parent 31c5c14 commit 3663e4f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e_test_for_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ jobs:
outputs:
NEED_TO_RUN_TESTS: ${{ steps.decision.outputs.NEED_TO_RUN_TESTS }}
steps:
- name: Get changed files
id: testing-behavior
run: |
git fetch origin {{ GITHUB_BASE_REF }}
diff=$(git diff --name-only --diff-filter=AM origin/{{ GITHUB_BASE_REF }}..HEAD | tr '\n' ' ')
echo $diff
echo "ADDED_MODIFIED=$diff" >> "$GITHUB_OUTPUT"
for changed_file in $diff; do
echo $changed_file
done
- id: files
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
- name: Make decision based on changed files
Expand Down

0 comments on commit 3663e4f

Please sign in to comment.