Skip to content

Commit 3663e4f

Browse files
committed
ci: manual implementation of the diff action
1 parent 31c5c14 commit 3663e4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/e2e_test_for_prs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ jobs:
99
outputs:
1010
NEED_TO_RUN_TESTS: ${{ steps.decision.outputs.NEED_TO_RUN_TESTS }}
1111
steps:
12+
- name: Get changed files
13+
id: testing-behavior
14+
run: |
15+
git fetch origin {{ GITHUB_BASE_REF }}
16+
diff=$(git diff --name-only --diff-filter=AM origin/{{ GITHUB_BASE_REF }}..HEAD | tr '\n' ' ')
17+
echo $diff
18+
echo "ADDED_MODIFIED=$diff" >> "$GITHUB_OUTPUT"
19+
for changed_file in $diff; do
20+
echo $changed_file
21+
done
1222
- id: files
1323
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
1424
- name: Make decision based on changed files

0 commit comments

Comments
 (0)