Skip to content

ci: trigger

ci: trigger #44

name: Sync to awesome-ai-plugins

Check failure on line 1 in .github/workflows/sync-to-ai-plugins.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync-to-ai-plugins.yml

Invalid workflow file

(Line: 22, Col: 13): Unrecognized named-value: 'secrets'. Located at position 10 within expression: contains(secrets, 'BOT_TOKEN') && secrets.BOT_TOKEN != ''
on:
push:
branches: [main]
paths:
- README.md
- plugins.json
- .agents/plugins/marketplace.json
permissions:
contents: read
jobs:
dispatch:
name: Trigger sync to awesome-ai-plugins
runs-on: ubuntu-latest
# Requires BOT_TOKEN secret with repo scope for cross-repo dispatch
# Without it, this step will be skipped
steps:
- name: Repository Dispatch
if: ${{ contains(secrets, 'BOT_TOKEN') && secrets.BOT_TOKEN != '' }}
uses: peter-evans/repository-dispatch@v4
with:
repository: hashgraph-online/awesome-ai-plugins
event-type: sync-to-ai-plugins
token: ${{ secrets.BOT_TOKEN }}