Skip to content

sourcegraph/lsif-upload-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcegraph LSIF Uploader GitHub Action

This action uploads generated LSIF data to a Sourcegraph instance.

Usage

The following inputs can be set.

name default description
file dump.lsif The LSIF dump file to upload.
root '' The root of the LSIF dump.
endpoint https://sourcegraph.com The Sourcegraph instance to target.
ignore_upload_failure false Permit action to succeed if uploading the LSIF dump to endpoint fails.

The following is a complete example that uses the Go indexer action to generate data to upload. Put this in .github/workflows/lsif.yaml.

name: LSIF
on:
  - push
jobs:
  index:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - name: Generate LSIF data
        uses: sourcegraph/lsif-go-action@master
      - name: Upload LSIF data
        uses: sourcegraph/lsif-upload-action@master
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}