GitHub Action
Stellate config preview
v1.0.0
Latest version
Preview the impact of new or updated caching rules on your existing operations.
This GitHub Action runs the stellate cli config preview
command and comments
on your PRs with the detected changes and a link to your dashboard to view the
impacted operations.
Important
Write access needs to be granted for the pull-requests
scope and also read
access for contents
scope.
Warning
This action only works for pull_request events.
on:
pull_request:
types: [opened, synchronize]
jobs:
stellate-config-preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- uses: StellateHQ/config-preview-action@v1
with:
stellate-token: ${{ secrets.STELLATE_TOKEN }}
Required A Stellate token for access.
Head to your Access Tokens page, click the Create a token button, and name the new token. Make sure also to copy the token to a safe place; you won't be able to see it again.
Required A GitHub token for API access. Defaults to {{ github.token }}
.