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 df761b6 commit c31ccb5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/e2e_test_for_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,13 @@ jobs:
- name: Git clone
uses: actions/checkout@v4
- name: Get changed files
id: testing-behavior
id: decision
run: |
git fetch origin $GITHUB_BASE_REF
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
echo $changed_file
done
- id: files
uses: jitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42
- name: Make decision based on changed files
id: decision
run: |
needToRunTests=false
for changed_file in ${{ steps.files.outputs.all }}; do
for changed_file in $diff; do
if [[ ${changed_file} =~ ^(proxy|scripts|mgmt-lambda)\/.+$ ]]; then
needToRunTests=true
fi
Expand Down

0 comments on commit c31ccb5

Please sign in to comment.