Skip to content

added a system property flag to bypass the debounce #1865

added a system property flag to bypass the debounce

added a system property flag to bypass the debounce #1865

Workflow file for this run

name: Sourcegraph
on:
push:
paths:
- '**.kt'
- '**.java'
- '**.kts'
- '.github/workflows/scip-java.yml'
jobs:
scip-java:
if: github.repository == 'sourcegraph/jetbrains'
runs-on: ubuntu-latest
name: "Upload SCIP"
steps:
- uses: actions/checkout@v3
- run: yarn global add pnpm@8.6.7
- run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
id: pnpm-cache
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-${{ matrix.node }}-pnpm-store-k
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: coursier/setup-action@v1
with:
jvm: 'zulu:11'
apps: scip-java
- name: Generate SCIP File
run: scip-java index --build-tool=gradle
- name: Install src
run: yarn global add @sourcegraph/src
- name: Upload SCIP to Cloud
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.com/
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }}
- name: Upload SCIP to S2
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress
env:
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }}