Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-osalazarlizano committed Jun 17, 2024
1 parent b83eb70 commit 5e6872e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ jobs:
environment-file: ${{ matrix.environment-file }}
- name: Get changes
id: changed-files
run: |
if ${{ github.event_name == 'pull_request' }}; then
echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
fi
uses: jitterbit/get-changed-files@v1
- name: List changed files
run: |
for file in ${{ steps.changed-files.outputs.changed_files }}; do
echo "$(dirname "${file}")"
done
for changed_file in ${{ steps.changed-files.outputs.all }}; do
DIR="$(dirname "${changed_file}")"
echo "Do something with this ${DIR}."
done
- name: Install dependencies
run: |
python -m pip install pytest
Expand Down

0 comments on commit 5e6872e

Please sign in to comment.