Skip to content

Commit 4d478c6

Browse files
committed
Merge branch 'DOP-5399' into branch-off-DOP-5399
2 parents 88e005a + 97cdd3d commit 4d478c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/osiris-subpar-coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
- name: Install Wget
2424
run: sudo apt-get update && sudo apt-get install -y wget
2525

26+
- name: Debug Secrets
27+
run: echo "Token Length: ${#secrets.PERSONAL_ACCESS_TOKEN}"
28+
2629
- name: Clone Docs Java
2730
run: git clone --branch DOP-5399 https://github.com/mongodb/docs-java.git cloned-docs-java-repo
2831

2932
- name: Clone Osiris
30-
run: git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/10gen/osiris.git cloned-osiris-repo
33+
run: git clone https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/10gen/osiris.git cloned-osiris-repo
3134

3235
- name: Run Coverage Check
3336
id: run_coverage
@@ -40,7 +43,7 @@ jobs:
4043
# Extract the last reported overall coverage percentage
4144
COVERAGE_PERCENT=$(echo "$COVERAGE_OUTPUT" | grep -oE 'Average Coverage: [0-9]+(\.[0-9]+)?%' | tail -1 | grep -oE '[0-9]+(\.[0-9]+)?')
4245
43-
REQUIRED_COVERAGE=90.0
46+
REQUIRED_COVERAGE=100.0
4447
4548
# Extract site names where Average Coverage is below the required coverage%
4649
LOW_COVERAGE_SITES=$(echo "$COVERAGE_OUTPUT" | awk -v threshold=$REQUIRED_COVERAGE '

0 commit comments

Comments
 (0)