Skip to content

Fix create worker manifest loading (#477) #2

Fix create worker manifest loading (#477)

Fix create worker manifest loading (#477) #2

Workflow file for this run

# notify-intent.yml — Drop this into your library repo's .github/workflows/
#
# Fires a repository_dispatch event to TanStack/intent whenever docs or
# source files change on merge to main. This triggers the skill staleness
# check workflow in the intent repo.
#
# Requirements:
# - A fine-grained PAT with contents:write on TanStack/intent stored
# as the INTENT_NOTIFY_TOKEN repository secret.
#
# Template variables (replaced by `intent setup`):
# @tanstack/cli — e.g. @tanstack/query
# docs/** — e.g. docs/**
# src/** — e.g. packages/query-core/src/**
name: Notify Intent
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'src/**'
permissions:
contents: read
jobs:
notify:
name: Notify TanStack Intent
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
persist-credentials: false
- name: Collect changed files
id: changes
run: |
FILES=$(git diff --name-only HEAD~1 HEAD | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "files=$FILES" >> "$GITHUB_OUTPUT"
- name: Dispatch to intent repo
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
repository: TanStack/intent
event-type: skill-check
client-payload: |
{
"package": "@tanstack/cli",
"sha": "${{ github.sha }}",
"changed_files": ${{ steps.changes.outputs.files }}
}