Skip to content

Commit f07f454

Browse files
Fix SCIP uploads in CI (#343)
1 parent fe9aff0 commit f07f454

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

.github/workflows/scip.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Upload SCIP to Sourcegraph'
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- run: yarn install
13+
- run: yarn global add ts-node @sourcegraph/src
14+
- run: ts-node src/main.ts index
15+
16+
- name: Upload SCIP to Cloud
17+
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
18+
env:
19+
SRC_ENDPOINT: https://sourcegraph.com/
20+
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }}
21+
22+
- name: Upload SCIP to S2
23+
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
24+
env:
25+
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
26+
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }}

.github/workflows/sourcegraph.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)