The Graphite CI action allows you to define when to run CI.
Common optimizations include:
- Only running CI on the bottom N PRs of a stack
- Only running CI once downstack CI has passed
-
First, get your CI token from https://app.graphite.dev/ci
-
Then, add the CI step to your workflow file:
steps:
- name: Checkout
uses: withgraphite/graphite-ci-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
graphite_token: 'XXX'
To instead use a
specific version of
this action, replace @main
with @v1.0
(or whatever the current latest
version is).