Skip to content

Commit

Permalink
Update check_gds_files.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc authored Oct 8, 2024
1 parent 05cc41a commit 44bc158
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check_gds_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ jobs:
id: changed_files
run: |
# Get the list of files changed in the PR
echo "::set-output name=files::$(git diff --name-only origin/main HEAD)"
# echo "::set-output name=files::$(git diff --name-only origin/main HEAD)"
# get added/modified py files
if [ "${{ github.event_name }}" == "push" ]; then
echo "::set-output name=files::$(git diff --name-only --diff-filter=ACM ${{ github.event.before }} ${{ github.sha }})"
else
echo "::set-output name=files::$(git diff --name-only --diff-filter=ACM FETCH_HEAD)"
fi
- name: Check GDS and OAS file locations and names
run: |
Expand Down

0 comments on commit 44bc158

Please sign in to comment.