Skip to content

Commit

Permalink
still chasing solution
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybabb committed Oct 1, 2024
1 parent b6beb3e commit 471a90c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
- name: Check if TypeScript files were modified
id: build_check
run: |
MODIFIED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
git fetch origin main --depth=2
PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
MODIFIED_FILES=$(git diff --name-only $PREVIOUS_COMMIT HEAD)
if [[ "$MODIFIED_FILES" == *"src/**/*.ts"* ]]; then
echo "Build should run."
echo "::set-output name=build_ran::true"
Expand Down Expand Up @@ -90,10 +92,12 @@ jobs:
version: 'latest'

- name: Get modified files
id: get_changed_files
run: |
MODIFIED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
git fetch origin main --depth=2
PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
MODIFIED_FILES=$(git diff --name-only $PREVIOUS_COMMIT HEAD)
echo "$MODIFIED_FILES" > modified_files.txt
echo "$MODIFIED_FILES"
- name: Execute clingen-stage BigQuery Function Scripts
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/general/all_schemas-func.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ AS (
WHERE
(
REGEXP_CONTAINS(iss.schema_name, r'^clinvar_\d{4}_\d{2}_\d{2}_v\d+_\d+_\d+$')
OR
OR
REGEXP_CONTAINS(iss.schema_name, r'^clinvar_\d{4}_\d{2}_\d{2}_v\d+_\d+_\d+_beta\d+$')
)
AND
Expand Down
2 changes: 1 addition & 1 deletion src/bq-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@ function createSigType(nosig_count: number, unc_count: number, sig_count: number
{ count: unc_count, percent: Math.round((unc_count / total) * 1000) / 1000 },
{ count: sig_count, percent: Math.round((sig_count / total) * 1000) / 1000 }
];
}
}

0 comments on commit 471a90c

Please sign in to comment.