Skip to content

Commit 932ed33

Browse files
committed
🔧 DOP-5399 uses actions/checkout method and removed dup cloning approach
1 parent 9ff88ac commit 932ed33

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ jobs:
1818
steps:
1919
- name: Checkout Repos
2020
uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
23+
fetch-depth: 0
24+
ref: DOP-5399-CB
25+
26+
- name: Verify Branch Checkout
27+
run: |
28+
git branch --show-current # Print the current branch
2129
2230
- name: Install Wget
2331
run: sudo apt-get update && sudo apt-get install -y wget
2432

25-
- name: Clone Docs Java
26-
run: git clone --branch DOP-5399-CB https://github.com/mongodb/docs-java.git cloned-docs-java-repo
27-
2833
- name: Clone Osiris
2934
run: git clone https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/10gen/osiris.git cloned-osiris-repo
3035

@@ -33,7 +38,7 @@ jobs:
3338
run: |
3439
cd cloned-osiris-repo
3540
npm ci
36-
COVERAGE_OUTPUT=$(npm run dev -- -c "$GITHUB_WORKSPACE/cloned-docs-java-repo" -v --sp 95)
41+
COVERAGE_OUTPUT=$(npm run dev -- -c "$GITHUB_WORKSPACE" -v --sp 95)
3742
3843
REQUIRED_COVERAGE=100.0
3944

0 commit comments

Comments
 (0)