GitHub Action
Runs your scenario checks for a commit and fails the job when one fails; optionally uploads code references. Use a CI key: it can run scenarios but can't publish, and the action refuses admin keys.
name: Flags
on:
pull_request: # NOT pull_request_target
push:
branches: [main]
permissions:
contents: read
jobs:
scenarios:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: motazalmaroai/nanoflags-sdk/integrations/github-action@main # pin to a commit SHA
with:
key: ${{ secrets.NANOFLAGS_CI_KEY }}
source: draft