Skip to content

Commit

Permalink
Merge pull request #2 from jasminabrar/main
Browse files Browse the repository at this point in the history
only run verification on new / modified files
  • Loading branch information
jasminabrar authored Dec 12, 2023
2 parents 3211e4a + a8077fd commit ca5ce8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: checkout repo content
uses: actions/checkout@v2
with:
fetch-depth: 0

# can also specify python version if needed
- name: setup python
Expand All @@ -35,8 +37,8 @@ jobs:
id: run-script
run: |
#locate the .gds and .oas files
export FILES=$(find submissions -type f \( -name "*.gds" -o -name "*.oas" \) -exec basename {} \;)
#locate the changed / added .gds and .oas files in the submission folder
export FILES=$(git diff --name-status --diff-filter=ACM --relative=submissions ${{ github.event.before }} ${{ github.sha }} submissions | grep -E '\.(gds|oas)$' | awk '{print $2}')
# print the names of the files
echo "Files for verification: $FILES"
Expand Down
Binary file added submissions/ebeam_adiabatic_te1550.gds
Binary file not shown.

0 comments on commit ca5ce8b

Please sign in to comment.