Skip to content

Commit

Permalink
Single line sdf file check to circumvent issue of Github not being ab…
Browse files Browse the repository at this point in the history
…le to parse multi line inputs (#23)

Signed-off-by: frederik <[email protected]>
  • Loading branch information
frede791 authored Dec 18, 2023
1 parent bd97d48 commit 7edbde3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/model-download.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Model Download

on:
workflow_dispatch:
push:
branches:
- '*'
workflow_dispatch:
push:
branches:
- '*'

jobs:
test:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/sdf_parser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: SDF Parsing

on:
push:
branches:
- '*'
push:
branches:
- '*'

jobs:
build:
Expand Down Expand Up @@ -41,13 +41,14 @@ jobs:
id: second_to_last_commit
run: echo "hash=$(git log --format="%H" -n 2 | tail -n 1)" >> $GITHUB_OUTPUT

- name: Get changed files
id: changed-files
run: echo "changed_files=$(git diff --name-only ${{ steps.second_to_last_commit.outputs.hash }} ${{ steps.latest_commit.outputs.hash }})" >> $GITHUB_OUTPUT
# - name: Get changed files
# id: changed-files
# run: echo "changed_files=$(git diff --name-only ${{ steps.second_to_last_commit.outputs.hash }} ${{ steps.latest_commit.outputs.hash }})" >> $GITHUB_OUTPUT

- name: Iterate, find and check .sdf files
run: |
for file in ${{ steps.changed-files.outputs.changed_files }}; do
changed_files=$(git diff --name-only ${{ steps.second_to_last_commit.outputs.hash }} ${{ steps.latest_commit.outputs.hash }})
for file in $changed_files; do
if [[ $file == *.sdf ]]; then
echo "Checking $file"
Expand Down

0 comments on commit 7edbde3

Please sign in to comment.