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 3663e4f commit b1fcf2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/e2e_test_for_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ jobs:
outputs:
NEED_TO_RUN_TESTS: ${{ steps.decision.outputs.NEED_TO_RUN_TESTS }}
steps:
- name: Git clone
uses: actions/checkout@v4
- 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' ' ')
diff=$(git diff --name-only --diff-filter=AM origin/{{ GITHUB_BASE_REF }}..HEAD)
echo $diff
echo "ADDED_MODIFIED=$diff" >> "$GITHUB_OUTPUT"
for changed_file in $diff; do
Expand Down

0 comments on commit b1fcf2c

Please sign in to comment.